rm unnecessary fstring
This commit is contained in:
@@ -65,12 +65,12 @@ class APIHandler:
|
|||||||
case 404:
|
case 404:
|
||||||
# Lapalissian:
|
# Lapalissian:
|
||||||
raise ConnectionError(
|
raise ConnectionError(
|
||||||
f"404: Not Found. This means there's no resource with this elabid (wrong elabid?) on your eLabFTW (wrong endpoint?)."
|
"404: Not Found. This means there's no resource with this elabid (wrong elabid?) on your eLabFTW (wrong endpoint?)."
|
||||||
)
|
)
|
||||||
case 400:
|
case 400:
|
||||||
# I genuinely have no idea:
|
# I genuinely have no idea:
|
||||||
raise ConnectionError(
|
raise ConnectionError(
|
||||||
f"400: Bad Request. This means the API endpoint you tried to reach is invalid. Did you tamper with the source code? If not, contact the developer."
|
"400: Bad Request. This means the API endpoint you tried to reach is invalid. Did you tamper with the source code? If not, contact the developer."
|
||||||
)
|
)
|
||||||
case _:
|
case _:
|
||||||
# For some fucking reason, this is the only error I actually get from the API...
|
# For some fucking reason, this is the only error I actually get from the API...
|
||||||
|
|||||||
Reference in New Issue
Block a user