summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ausbutler/interface.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/ausbutler/interface.py b/ausbutler/interface.py
index 172abfa..c8bd2b9 100644
--- a/ausbutler/interface.py
+++ b/ausbutler/interface.py
@@ -88,6 +88,11 @@ class Interface(object):
aus_b.score,
self.config['cutoff_point'],
self.config['cutoff_rate'])
+ if aus_b.table is None:
+ raise ValueError(
+ 'player ID=%d has butler (round %d, segment %d), but is missing from lineup!' % (
+ aus_b.id, aus_b.match, aus_b.segment
+ ))
aus_b.board_count = aus_b.table.butler_count[
get_room(aus_b, butler.id)]
self.session.add(aus_b)