Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
DNS testing tools
Remoh
Commits
a3bf3c58
Commit
a3bf3c58
authored
Jun 03, 2020
by
Alexandre
Browse files
Catch ValueError in option parsing
parent
83d29228
Changes
1
Hide whitespace changes
Inline
Side-by-side
homer.py
View file @
a3bf3c58
...
...
@@ -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
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment