error in empty string handling

This commit is contained in:
Eric Romano
2014-08-19 14:05:59 -04:00
parent 1333435f4f
commit 6c1faad8a6

View File

@ -280,9 +280,9 @@ def main():
print ('Enter name of the repo to be used by gitfiti:')
repo = raw_input(">")
print ('Enter number of weeks to offset the image (from the left):')
print ('Enter the number of weeks to offset the image (from the left):')
offset = raw_input(">")
if offset == None:
if not offset.strip():
offset = 0
else:
offset = int(offset)