Commit a3bf3c58 authored by Alexandre's avatar Alexandre
Browse files

Catch ValueError in option parsing

parent 83d29228
......@@ -982,7 +982,7 @@ if not monitoring:
mandatory_level = value
else:
error("Unknown option %s" % option)
except getopt.error as reason:
except (getopt.error, ValueError) as reason:
usage(reason)
sys.exit(1)
if delay is not None and multistreams:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment