Skip to content

Commit

Permalink
fix none exception
Browse files Browse the repository at this point in the history
  • Loading branch information
eukreign committed Jul 14, 2020
1 parent 622a3b7 commit 9c5e2a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lbry/console.py
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ def sync_task(self, name, d):
diff = d['done'][0] - bar.n
if main_bar_name != name:
main_bar = self.bars.get(main_bar_name)
if main_bar.unit == bar.unit:
if main_bar and main_bar.unit == bar.unit:
main_bar.update(diff)
bar.update(diff)
if d['done'][0] == -1 or d['done'][0] == bar.total:
Expand Down

0 comments on commit 9c5e2a8

Please sign in to comment.