[fix] Update in get_values (ignore) condition to allow tags

This commit is contained in:
Rushabh Mehta 2013-07-01 11:17:43 +05:30
parent 7076ff2260
commit bbaa1df757

View file

@ -323,10 +323,10 @@ class Database:
try:
return self.get_values_from_table(fields, filters, doctype, as_dict, debug)
except Exception, e:
if e.args[0]!=1146:
if ignore and e.args[0] in (1146, 1054):
return None
else:
raise e
# not a table, try in singles
return self.get_values_from_single(fields, filters, doctype, as_dict, debug)