diff --git a/server.py b/server.py index 656d2d1..f1bbb95 100644 --- a/server.py +++ b/server.py @@ -227,8 +227,10 @@ def run_server(port): if __name__ == '__main__': + port = 33333 if len(sys.argv) >= 2: - port = int(sys.argv[1]) - else: - port = 33333 + try: + port = int(sys.argv[1]) + except ValueError: + pass run_server(port)