better timeout handling #14
@ -218,7 +218,9 @@ async def generate(
|
||||
except Exception: # pylint: disable=W0718
|
||||
error_data = "error message unreadable"
|
||||
|
||||
error_message = f"Error {status_code} at API-request.\n" f"Answer: {error_data}\n"
|
||||
error_message = (
|
||||
f"Error {status_code} at API-request.\n" f"Answer: {error_data}\n"
|
||||
)
|
||||
|
||||
await interaction.followup.send(error_message)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user