Fix AttributeError

This commit is contained in:
croneter 2018-12-09 17:23:43 +01:00
parent f13950590e
commit 3a73b9de44

View file

@ -100,7 +100,7 @@ class FullSync(common.libsync_mixin):
super(FullSync, self).__init__() super(FullSync, self).__init__()
def update_progressbar(self): def update_progressbar(self):
if self.show_dialog: if self.dialog:
try: try:
progress = int(float(self.current) / float(self.total) * 100.0) progress = int(float(self.current) / float(self.total) * 100.0)
except ZeroDivisionError: except ZeroDivisionError: