Permalink
Browse files

Fix -r option without -b

  • Loading branch information...
1 parent 840142e commit 135e153016535273dcd65d02bf03316355630cfb @tom111 tom111 committed Mar 7, 2012
Showing with 4 additions and 2 deletions.
  1. +4 −2 scripts/tatt
View
@@ -87,13 +87,15 @@ parser.add_option("-o", "--overview" "--browse",
config['verbose']=options.verbose
# Normalize the template dir:
config['template-dir']=os.path.abspath(config['template-dir'])+os.sep
-# Test if the bugnumber represents an int
+# If given, test if the bugnumber represents an int
try:
int(options.bugnum)
except ValueError:
print ("The bugnumber you gave with -b should be an integer.")
exit(1);
-
+except TypeError:
+ # This occurs if bugnum is None, that is, -b was not given
+ pass
## Checking for root, tatt should be run as a user, I guess.
## Remove on occasion.

0 comments on commit 135e153

Please sign in to comment.