Skip to content
Snippets Groups Projects
Verified Commit 21cc8f68 authored by Timm Fitschen's avatar Timm Fitschen
Browse files

STY: autopep8'ed table_export

parent b7138cf0
No related branches found
No related tags found
2 merge requests!89ENH: JsonSchemaExporter accepts do_not_create parameter.,!78ENH: more useful table export find func
Pipeline #40622 passed
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment