Skip to content

Commit

Permalink
abort on invalid command line game.
Browse files Browse the repository at this point in the history
  • Loading branch information
shlomif committed Apr 29, 2019
1 parent 4cb9470 commit cb25f39
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pysollib/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
# imports
import os
import re
import sys
import traceback
from pickle import UnpicklingError

Expand Down Expand Up @@ -487,6 +488,7 @@ def mainproc(self):
gameid = self.gdb.getGameByName(self.commandline.game)
if gameid is None:
print_err(_("can't find game: ") + self.commandline.game)
sys.exit(-1)
else:
self.nextgame.id, self.nextgame.random = gameid, None
elif self.commandline.gameid is not None:
Expand Down

0 comments on commit cb25f39

Please sign in to comment.