Skip to content

Commit

Permalink
!squash more
Browse files Browse the repository at this point in the history
  • Loading branch information
tony committed Jul 31, 2022
1 parent 4454052 commit bb730c2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions libvcs/_internal/query_list.py
Expand Up @@ -40,8 +40,8 @@ def keygetter(
for sub_field in sub_fields:
dct = dct[sub_field]
return dct
except Exception as e:
traceback.print_exception(e)
except Exception:
traceback.print_stack()
return None


Expand All @@ -59,8 +59,8 @@ def parse_lookup(obj: Mapping[str, Any], path: str, lookup: str) -> Optional[Any
if isinstance(path, str) and isinstance(lookup, str) and path.endswith(lookup):
if field_name := path.rsplit(lookup)[0]:
return keygetter(obj, field_name)
except Exception as e:
traceback.print_exception(e)
except Exception:
traceback.print_stack()
return None


Expand Down

0 comments on commit bb730c2

Please sign in to comment.