ruff: Reformat with ruff 0.1.4.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
a2ddac75f3
commit
8ebacd0180
2 changed files with 2 additions and 4 deletions
|
@ -3,7 +3,7 @@ twine
|
||||||
mock
|
mock
|
||||||
pytest
|
pytest
|
||||||
pytest-cov
|
pytest-cov
|
||||||
ruff~=0.1.3
|
ruff~=0.1.4
|
||||||
-e ./zulip
|
-e ./zulip
|
||||||
-e ./zulip_bots
|
-e ./zulip_bots
|
||||||
-e ./zulip_botserver
|
-e ./zulip_botserver
|
||||||
|
|
|
@ -67,9 +67,7 @@ at syntax by: @mention-botname help"
|
||||||
return f"Error occured : {r.status_code}" # Occures in case of unprocessable entity
|
return f"Error occured : {r.status_code}" # Occures in case of unprocessable entity
|
||||||
else:
|
else:
|
||||||
datapoint_link = f"https://www.beeminder.com/{username}/{goalname}"
|
datapoint_link = f"https://www.beeminder.com/{username}/{goalname}"
|
||||||
return (
|
return f"[Datapoint]({datapoint_link}) created." # Handles the case of successful datapoint creation
|
||||||
f"[Datapoint]({datapoint_link}) created."
|
|
||||||
) # Handles the case of successful datapoint creation
|
|
||||||
except ConnectionError:
|
except ConnectionError:
|
||||||
logging.exception("Error connecting to Beeminder")
|
logging.exception("Error connecting to Beeminder")
|
||||||
return "Uh-Oh, couldn't process the request \
|
return "Uh-Oh, couldn't process the request \
|
||||||
|
|
Loading…
Add table
Reference in a new issue