Skip to content

Commit

Permalink
Fix variable access
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurenceRawlings committed Nov 18, 2020
1 parent 7ae9124 commit f66149c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions savify/savify.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def _download(self, track: Track):
ydl.download([query])
downloaded = True
except:
if attempt > retry:
if attempt > self.retry:
status['returncode'] = 1
status['error'] = "Failed to download track."
print(logger.log)
Expand Down Expand Up @@ -200,7 +200,7 @@ def _download(self, track: Track):

added_artwork = True
except:
if attempt > retry:
if attempt > self.retry:
try:
os.rename(output_temp, output)
added_artwork = True
Expand Down

0 comments on commit f66149c

Please sign in to comment.