From 6c1faad8a68519fd47f0db3eb914470e938e3228 Mon Sep 17 00:00:00 2001 From: Eric Romano Date: Tue, 19 Aug 2014 14:05:59 -0400 Subject: [PATCH] error in empty string handling --- gitfiti.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gitfiti.py b/gitfiti.py index 6e69a98af..405b8198b 100755 --- a/gitfiti.py +++ b/gitfiti.py @@ -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)