Skip to content

Commit 1569795

Browse files
committed
more lint
1 parent 25b722f commit 1569795

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

guardrails/cli/hub/install.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def pip_process(
4747
parsed = BytesHeaderParser().parsebytes(output)
4848
try:
4949
return json.loads(str(parsed))
50-
except Exception as e:
50+
except Exception:
5151
logger.debug(
5252
f"json parse exception in decoding output from pip {action} {package}. Falling back to accumulating the byte stream", # noqa
5353
)

tests/unit_tests/cli/hub/test_install.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ def parsebytes(self, *args):
139139
call("running pip show pip"),
140140
call("decoding output from pip show pip"),
141141
call(
142-
"json parse exception in decoding output from pip show pip. Falling back to accumulating the byte stream"
142+
"json parse exception in decoding output from pip show pip. Falling back to accumulating the byte stream" # noqa
143143
),
144144
]
145145
mock_logger_debug.assert_has_calls(debug_calls)

0 commit comments

Comments
 (0)