HUD_main: if new hand id int is not available, we can't print it, so that generates a second error, double fault

fpdb_import: ok, we're keeping two lists now, one with updated st_size and one with m_time.  grrr.
This commit is contained in:
eblade
2009-07-31 01:15:28 -04:00
parent 6e8232f623
commit 6df03cb234
2 changed files with 12 additions and 7 deletions
+2 -1
View File
@@ -163,7 +163,8 @@ class HUD_main(object):
cards['common'] = comm_cards['common']
except Exception, err:
print "db error: skipping ", new_hand_id, err
sys.stderr.write("Database error %s in hand %d. Skipping.\n" % (err, int(new_hand_id)))
if new_hand_id: # new_hand_id is none if we had an error prior to the store
sys.stderr.write("Database error %s in hand %d. Skipping.\n" % (err, int(new_hand_id)))
continue
if type == "tour": # hand is from a tournament