Fix syntax

This commit is contained in:
Fabian Köster
2018-04-18 17:45:24 +02:00
parent 451bbd53d9
commit 07a5485814

View File

@@ -1858,7 +1858,7 @@ class Error(Exception):
try: try:
options, arguments = getopt.getopt(sys.argv[1:], 'nh:', ['host=', 'new=']) options, arguments = getopt.getopt(sys.argv[1:], 'nh:', ['host=', 'new='])
except getopt.GetoptError as err: except getopt.GetoptError as err:
print(str(err) # will print something like "option -a not recognized") print(str(err)) # will print something like "option -a not recognized"
print('Usage: python-rest.py <connection string>') print('Usage: python-rest.py <connection string>')
sys.exit(2) sys.exit(2)