Arreglado bug de ticket vacĂ­o
authordanigm <dani@danigm.net>
Wed, 24 Sep 2008 18:11:11 +0000 (20:11 +0200)
committerdanigm <dani@danigm.net>
Wed, 24 Sep 2008 18:11:11 +0000 (20:11 +0200)
ttt.py

diff --git a/ttt.py b/ttt.py
index 4345f19..ff09f1a 100755 (executable)
--- a/ttt.py
+++ b/ttt.py
@@ -143,6 +143,9 @@ if __name__ == '__main__':
     if len(args) >= 2:
         project = args[1]
     if len(args) >= 3:
-        ticket = int(args[2])
+        try:
+            ticket = int(args[2])
+        except:
+            ticket = 0
 
     track(task, project, ticket)