From 1653dcf34c1c3909550c9613285f356a823dc94e Mon Sep 17 00:00:00 2001 From: eblade Date: Tue, 10 Mar 2009 20:19:33 -0400 Subject: [PATCH] fix error i made in convertcards --- pyfpdb/Database.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyfpdb/Database.py b/pyfpdb/Database.py index a34e2ed1..3831dc04 100644 --- a/pyfpdb/Database.py +++ b/pyfpdb/Database.py @@ -147,9 +147,9 @@ class Database: cards = "" for i in xrange(1, 8): cv = "card%dValue" % i - if d[cv] == None: + if cv not in d: break - elif d[cv] == 0: + elif d[cv] == 0 or d[cv] == None: cards = "%sxx" % cards else: cs = "card%dSuit" % i