Fix UnboundLocalError on indexed retrieval. See bug #4

This commit is contained in:
Bastian Kleineidam 2013-01-23 19:51:08 +01:00
parent caa20e18dc
commit 6477e570e1
2 changed files with 3 additions and 1 deletions

View file

@ -10,6 +10,8 @@ Changes:
- comics: CyanideAndHappiness image filename now has the strip number prefixed.
Fixes:
- comics: Fix UnboundLocalError when using indexed retrieval.
Closes: GH bug #4
- scripts: Ensure the generated comic names do not exceed 100 characters so
they do not cause problems with path length restrictions.
- installation: Set correct homepage url so "pip install dosage" works.

View file

@ -76,7 +76,7 @@ class _BasicScraper(object):
if maxstrips:
msg = 'Retrieving %d strips' % maxstrips
elif self.indexes:
msg += "Retrieving %d strips for indexes %s" % (len(self.indexes), self.indexes)
msg = "Retrieving %d strips for indexes %s" % (len(self.indexes), self.indexes)
else:
msg = 'Retrieving all strips'
if self.adult: