home · contact · privacy
Server: Abort more elegantly on --help argument.
authorChristian Heller <c.heller@plomlompom.de>
Sat, 20 Feb 2016 09:44:30 +0000 (10:44 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Sat, 20 Feb 2016 09:44:30 +0000 (10:44 +0100)
roguelike-server

index ab6727dc7615ac3b4414b00a13de7b070551829c..c8bf3f71d28f47b95d3a14631ad45c8c60c23731 100755 (executable)
@@ -76,7 +76,8 @@ try:
     else:
         play_game()
 except SystemExit as exit:
-    print("ABORTING: " + str(exit.args[0]))
+    if len(exit.args) < 2 and exit.args[0] != 0:
+        print("ABORTING: " + str(exit.args[0]))
 except:
     print("SOMETHING WENT WRONG IN UNEXPECTED WAYS")
     raise