author | Andrey Skvortsov <andrej.skvortzov@gmail.com> |
Fri, 07 Sep 2018 20:58:13 +0000 | |
changeset 2304 | 68e6649039a5 |
parent 2302 | 69fefac5760e (current diff) |
parent 2303 | 03ea6837a0b4 (diff) |
child 2305 | 56f1d8aca886 |
child 2427 | 9554952d36d7 |
--- a/Beremiz_service.py Wed Aug 29 18:58:51 2018 +0300 +++ b/Beremiz_service.py Fri Sep 07 20:58:13 2018 +0000 @@ -69,7 +69,7 @@ try: opts, argv = getopt.getopt(sys.argv[1:], "i:p:n:x:t:a:w:c:e:s:h", ["help", "version"]) -except getopt.GetoptError, err: +except getopt.GetoptError as err: # print help information and exit: print(str(err)) # will print something like "option -a not recognized" usage()