Skip to content

Commit f948e13

Browse files
committed
add nocover to alias dict access, not hit on normal usage
1 parent 8d5f30c commit f948e13

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ormar/models/mixins/alias_mixin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def translate_aliases_to_columns(cls, new_kwargs: dict) -> dict:
101101
"""
102102
try:
103103
alias_to_field = cls._alias_to_field_map
104-
except AttributeError:
104+
except AttributeError: # pragma: nocover
105105
cls._build_alias_cache()
106106
alias_to_field = cls._alias_to_field_map
107107
for key in list(new_kwargs.keys()):

0 commit comments

Comments
 (0)