mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-06-07 10:53:26 +03:00
PLUGINS.md: except not catch
This commit is contained in:
parent
2df930b9d3
commit
0115e5c6ba
@ -110,14 +110,14 @@ Then replace `print(...)` statements with one of the following:
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
...
|
...
|
||||||
catch Exception:
|
except Exception:
|
||||||
# This logs at 'ERROR' level.
|
# This logs at 'ERROR' level.
|
||||||
# Also automatically includes exception information.
|
# Also automatically includes exception information.
|
||||||
logger.exception('An exception occurred')
|
logger.exception('An exception occurred')
|
||||||
|
|
||||||
try:
|
try:
|
||||||
...
|
...
|
||||||
catch Exception as e:
|
except Exception as e:
|
||||||
logger.debug('Exception we only note in debug output', exc_info=e)
|
logger.debug('Exception we only note in debug output', exc_info=e)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user