Skip to content

Commit

Permalink
NoneType error due to timing with SAB
Browse files Browse the repository at this point in the history
  • Loading branch information
TsUPeR committed Apr 10, 2012
1 parent a15dd7c commit d1d75c9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,8 +263,12 @@ def short_string(input):
return output

def wait_for_rar_label(nzo, nzf, time_then):
mb = nzf.mb
mbleft = nzf.mbleft
if nzf is None:
mb = 1
mbleft = 0
else:
mb = nzf.mb
mbleft = nzf.mbleft
s = time.time() - time_then
if mbleft > 0:
percent = math.floor(((mb-mbleft)/mb)*100)
Expand Down

0 comments on commit d1d75c9

Please sign in to comment.