mirror of
https://github.com/Icinga/icinga2.git
synced 2026-06-09 00:32:12 -04:00
parent
4bfd6f9e23
commit
0ec5efafb5
1 changed files with 2 additions and 1 deletions
|
|
@ -27,7 +27,8 @@ def main():
|
|||
|
||||
try:
|
||||
opts, args = getopt.getopt(sys.argv[1:], "h", ["help", "color"])
|
||||
except getopt.GetoptError as err:
|
||||
except getopt.GetoptError:
|
||||
t, err = sys.exc_info()[:2]
|
||||
# print help information and exit:
|
||||
print str(err) # will print something like "option -a not recognized"
|
||||
usage()
|
||||
|
|
|
|||
Loading…
Reference in a new issue