projects
/
naja.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
55898b3
)
Don't swallow deck load errors when debugging.
author
Simon Cross
<hodgestar@gmail.com>
Sat, 17 May 2014 14:46:45 +0000
(16:46 +0200)
committer
Simon Cross
<hodgestar@gmail.com>
Sat, 17 May 2014 14:47:41 +0000
(16:47 +0200)
naja/options.py
patch
|
blob
|
history
diff --git
a/naja/options.py
b/naja/options.py
index 19d3e741aec5ae02b552af786b949567b6ac7697..73129490cf7903e4796543968f13248495c97353 100644
(file)
--- 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