From bb730c21797723b2755b810141ed5b453d6b750f Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Sun, 31 Jul 2022 10:46:01 -0500 Subject: [PATCH] !squash more --- libvcs/_internal/query_list.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libvcs/_internal/query_list.py b/libvcs/_internal/query_list.py index ee9f8c345..6efe3aaf9 100644 --- a/libvcs/_internal/query_list.py +++ b/libvcs/_internal/query_list.py @@ -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 @@ -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