home
·
contact
·
privacy
projects
/
plomrogue
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9968933
)
Server: Abort more elegantly on --help argument.
author
Christian Heller
<c.heller@plomlompom.de>
Sat, 20 Feb 2016 09:44:30 +0000
(10:44 +0100)
committer
Christian Heller
<c.heller@plomlompom.de>
Sat, 20 Feb 2016 09:44:30 +0000
(10:44 +0100)
roguelike-server
patch
|
blob
|
history
diff --git
a/roguelike-server
b/roguelike-server
index ab6727dc7615ac3b4414b00a13de7b070551829c..c8bf3f71d28f47b95d3a14631ad45c8c60c23731 100755
(executable)
--- a/
roguelike-server
+++ b/
roguelike-server
@@
-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