Skip to content

Commit

Permalink
add noqa comment to suppress F821 warning
Browse files Browse the repository at this point in the history
  • Loading branch information
tsv1 committed Jan 3, 2025
1 parent 4452a49 commit dc79eee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vedro/plugins/director/rich/_rich_reporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ def _is_exception_group(self, exc_info: ExcInfo) -> bool:
# WORKAROUND: This logic is in place as a temporary solution until
# https://github.com/vedro-universe/vedro/issues/113 is resolved.
if sys.version_info >= (3, 11):
return isinstance(exc_info.value, ExceptionGroup)
return isinstance(exc_info.value, ExceptionGroup) # noqa: F821
return False

def _prefix_to_indent(self, prefix: str, indent: int = 0) -> str:
Expand Down

0 comments on commit dc79eee

Please sign in to comment.