From fdb2d10d899c6e17bc6cb46ef8c019c0fdf0e010 Mon Sep 17 00:00:00 2001 From: Peter Van Dyken Date: Fri, 23 Feb 2024 15:05:45 -0500 Subject: [PATCH] Try different pragma format --- snakebids/_warningformat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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