Skip to content

Commit

Permalink
ruff: Reformat with ruff 0.1.4.
Browse files Browse the repository at this point in the history
Signed-off-by: Anders Kaseorg <[email protected]>
  • Loading branch information
andersk committed Nov 9, 2023
1 parent a2ddac7 commit 8ebacd0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ twine
mock
pytest
pytest-cov
ruff~=0.1.3
ruff~=0.1.4
-e ./zulip
-e ./zulip_bots
-e ./zulip_botserver
Expand Down
4 changes: 1 addition & 3 deletions zulip_bots/zulip_bots/bots/beeminder/beeminder.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,7 @@ def get_beeminder_response(message_content: str, config_info: Dict[str, str]) ->
return f"Error occured : {r.status_code}" # Occures in case of unprocessable entity
else:
datapoint_link = f"https://www.beeminder.com/{username}/{goalname}"
return (
f"[Datapoint]({datapoint_link}) created."
) # Handles the case of successful datapoint creation
return f"[Datapoint]({datapoint_link}) created." # Handles the case of successful datapoint creation
except ConnectionError:
logging.exception("Error connecting to Beeminder")
return "Uh-Oh, couldn't process the request \
Expand Down

0 comments on commit 8ebacd0

Please sign in to comment.