made port non-mandatory if using serverwide ARL option

This commit is contained in:
uh_wot 2020-05-05 15:36:05 +02:00
parent 3ff6ddc9a6
commit 3461ebbbd0

View file

@ -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)