diff --git a/pyfpdb/Database.py b/pyfpdb/Database.py index 38eb802e..de946a47 100644 --- a/pyfpdb/Database.py +++ b/pyfpdb/Database.py @@ -1885,7 +1885,7 @@ class Database: if doinsert: for h in hbulk: id = h.pop() - if hdata['sc'] and hdata['gsc']: + if (hdata['sc'] != None and hdata['sc']['bk']) and hdata['gsc']['bk']: h[4] = hdata['sc'][id]['id'] h[5] = hdata['gsc'][id]['id'] q = self.sql.query['store_hand']