tell us what kind of database error happened if hud database errors
This commit is contained in:
parent
1653dcf34c
commit
f2a6c9c361
|
@ -152,9 +152,9 @@ class HUD_main(object):
|
||||||
(table_name, max, poker_game) = self.db_connection.get_table_name(new_hand_id)
|
(table_name, max, poker_game) = self.db_connection.get_table_name(new_hand_id)
|
||||||
stat_dict = self.db_connection.get_stats_from_hand(new_hand_id)
|
stat_dict = self.db_connection.get_stats_from_hand(new_hand_id)
|
||||||
cards = self.db_connection.get_cards(new_hand_id)
|
cards = self.db_connection.get_cards(new_hand_id)
|
||||||
except:
|
except Exception, err:
|
||||||
print "skipping ", new_hand_id
|
print "db error: skipping ", new_hand_id, err
|
||||||
sys.stderr.write("Database error in hand %d. Skipping.\n" % int(new_hand_id))
|
sys.stderr.write("Database error %s in hand %d. Skipping.\n" % (err, int(new_hand_id)))
|
||||||
continue
|
continue
|
||||||
|
|
||||||
# find out if this hand is from a tournament
|
# find out if this hand is from a tournament
|
||||||
|
|
Loading…
Reference in New Issue
Block a user