fix session.remove

This commit is contained in:
Izalia Mae 2021-05-18 08:33:48 -04:00
parent 02e7e30728
commit 6372edad04

View file

@ -240,6 +240,7 @@ class Session(object):
def remove(self, table=None, rowid=None, row=None):
if row:
rowid = row.id
table = row._table_name
if not rowid or not table:
raise ValueError('Missing row ID or table')