X-Git-Url: https://git.ctpug.org.za/?a=blobdiff_plain;f=naja%2Foptions.py;h=73129490cf7903e4796543968f13248495c97353;hb=db18631120e34670b9f8be526f5b7d5938e1d7fc;hp=19d3e741aec5ae02b552af786b949567b6ac7697;hpb=5169e372472c650f1f936bb385f58f146910cd6f;p=naja.git diff --git a/naja/options.py b/naja/options.py index 19d3e74..7312949 100644 --- a/naja/options.py +++ b/naja/options.py @@ -32,6 +32,8 @@ def load_deck(parser, deck): try: state = GameState.new(deck=deck, max_health=4, wins_required=4) except: + if options.debug: + raise parser.error("Could not load deck %r" % (deck,)) options.game_state = state