Skip to content
Snippets Groups Projects

ENH: more useful table export find func

Merged Timm Fitschen requested to merge f-table-export-find-func into dev
All threads resolved!
@@ -166,11 +166,15 @@ class BaseTableExporter(object):
else:
self._append_missing(e, d)
elif FIND_FUNCTION in d:
val = self._call_find_function(d[FIND_FUNCTION], e);
if val is not None:
self.info[e] = val
else:
try:
val = self._call_find_function(d[FIND_FUNCTION], e)
if val is not None:
self.info[e] = val
else:
self._append_missing(e, d)
except Exception as exc:
self._append_missing(e, d)
logger.error(exc)
# last resort: check if record has e as property:
else:
try:
Loading