Skip to content

Commit 227f1d2

Browse files
[MegaLinter] Apply linters fixes
1 parent 9aada75 commit 227f1d2

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

newrelic/hooks/messagebroker_kombu.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,9 @@ def wrap_Producer_publish(wrapped, instance, args, kwargs):
9595
try:
9696
bound_args = bind_publish(*args, **kwargs)
9797
except Exception:
98-
_logger.debug("Unable to bind publish arguments. Report this issue to New Relic support.", record_exception=True)
98+
_logger.debug(
99+
"Unable to bind publish arguments. Report this issue to New Relic support.", record_exception=True
100+
)
99101
return wrapped(*args, **kwargs)
100102

101103
headers = bound_args["headers"]

tests/messagebroker_kombu/test_producer.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,8 @@ def test_producer_tries_to_parse_args(exchange, producer, queue, monkeypatch):
101101
@background_task()
102102
def test():
103103
with pytest.raises(TypeError):
104-
producer.publish({"foo": object()}, body={"foo": object()}, exchange=exchange, routing_key="bar", declare=[queue])
104+
producer.publish(
105+
{"foo": object()}, body={"foo": object()}, exchange=exchange, routing_key="bar", declare=[queue]
106+
)
105107

106108
test()

0 commit comments

Comments
 (0)