this can raise IndexError but not KeyError

This commit is contained in:
Piotr Dobrogost
2012-02-26 19:48:17 +01:00
parent 43872ceeec
commit 0826ed75d9
+1 -1
View File
@@ -8,7 +8,7 @@ from httpbin import app
try:
port = int(sys.argv[1])
except (KeyError, ValueError):
except (IndexError, ValueError):
port = 5000
print 'Starting httpbin on port {0}'.format(port)