mirror of
https://github.com/xtekky/gpt4free.git
synced 2025-12-06 02:30:41 -08:00
Improve logging
This commit is contained in:
parent
a2a1d63836
commit
98c973ca36
1 changed files with 1 additions and 1 deletions
|
|
@ -242,7 +242,7 @@ class Api:
|
|||
yield self._format_json("content", str(chunk))
|
||||
except MissingAuthError as e:
|
||||
yield self._format_json('auth', type(e).__name__, message=get_error_message(e))
|
||||
except TimeoutError as e:
|
||||
except (TimeoutError, asyncio.exceptions.CancelledError) as e:
|
||||
if "user" in kwargs:
|
||||
debug.error(e, "User:", kwargs.get("user", "Unknown"))
|
||||
yield self._format_json('error', type(e).__name__, message=get_error_message(e))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue