Browse Source

Fix crash in nilmdb-fsck if there are zero intervals, etc.

tags/nilmdb-1.9.8
Jim Paris 7 years ago
parent
commit
416902097d
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      nilmdb/fsck/fsck.py

+ 2
- 0
nilmdb/fsck/fsck.py View File

@@ -59,6 +59,8 @@ def retry_if_raised(exc, message = None, max_retries = 100):

class Progress(object):
def __init__(self, maxval):
if maxval == 0:
maxval = 1
self.bar = progressbar.ProgressBar(
maxval = maxval,
widgets = [ progressbar.Percentage(), ' ',


Loading…
Cancel
Save