Skip to content

Commit

Permalink
apply black
Browse files Browse the repository at this point in the history
  • Loading branch information
vladak committed Feb 11, 2024
1 parent be471c6 commit 9085211
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mq2anno.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,9 @@ def create_annotation(userdata, tag):
payload_str = json.dumps(payload)
logger.debug(f"posting {payload_str} with {userdata.headers} to {url}")
try:
response = requests.post(url, data=payload_str, headers=userdata.headers, timeout=3)
response = requests.post(
url, data=payload_str, headers=userdata.headers, timeout=3
)
if response.status_code != 200:
logger.error(f"Failed to post {payload_str} to {url}: {response.text}")
except requests.exceptions.ConnectionError as exc:
Expand Down

0 comments on commit 9085211

Please sign in to comment.