diff --git a/snakebids/_warningformat.py b/snakebids/_warningformat.py index d39f67cb..9a9ec25d 100644 --- a/snakebids/_warningformat.py +++ b/snakebids/_warningformat.py @@ -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 # When a warning is logged during Python shutdown, linecache # and the import machinery don't work anymore line = None