fixed typo in previous commit
@@ -615,8 +615,7 @@ class Table(Serializable, BasicStorage):
'key must have all fields from primary key: %s' %
self._primarykey)
elif str(key).isdigit():
- self._db(self._id == key)\
- .update(**self._filter_fields(value)) is None:
+ if not self._db(self._id == key).update(**self._filter_fields(value)):
raise SyntaxError('No such record: %s' % key)
else:
if isinstance(key, dict):
