From: Christian Heller Date: Sat, 20 Feb 2016 09:44:30 +0000 (+0100) Subject: Server: Abort more elegantly on --help argument. X-Git-Tag: tce~196 X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/foo.html?a=commitdiff_plain;h=dedd7e91f523cc8b85b36e688897fdc7ccdccafc;p=plomrogue Server: Abort more elegantly on --help argument. --- diff --git a/roguelike-server b/roguelike-server index ab6727d..c8bf3f7 100755 --- 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