summaryrefslogtreecommitdiff
path: root/lorrycontroller/showjob.py
diff options
context:
space:
mode:
Diffstat (limited to 'lorrycontroller/showjob.py')
-rw-r--r--lorrycontroller/showjob.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lorrycontroller/showjob.py b/lorrycontroller/showjob.py
index 951ad22..bc82bfe 100644
--- a/lorrycontroller/showjob.py
+++ b/lorrycontroller/showjob.py
@@ -39,7 +39,7 @@ class JobShower(object):
'path': statedb.get_job_path(job_id),
'exit': 'no' if exit is None else exit,
'disk_usage': disk_usage,
- 'disk_usage_nice': self.format_bytesize(disk_usage),
+ 'disk_usage_nice': self.format_bytesize(disk_usage or 0),
'output': output,
'job_started': self.format_time(started),
'job_ended': '' if ended is None else self.format_time(ended),