Skip to content

Commit

Permalink
Try different pragma format
Browse files Browse the repository at this point in the history
  • Loading branch information
pvandyken committed Feb 23, 2024
1 parent 423d831 commit fae6f5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion snakebids/_warningformat.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def formatwarning(
import linecache

line = linecache.getline(filename, lineno).rstrip()
except Exception: # noqa: BLE001 # pragma: no cover
except Exception: # pragma: no cover # noqa: BLE001

Check warning on line 29 in snakebids/_warningformat.py

View check run for this annotation

Codecov / codecov/patch

snakebids/_warningformat.py#L29

Added line #L29 was not covered by tests
# When a warning is logged during Python shutdown, linecache
# and the import machinery don't work anymore
line = None
Expand Down

0 comments on commit fae6f5e

Please sign in to comment.