PLUGINS.md: except not catch

This commit is contained in:
Athanasius committed 2020-08-02 19:35:02 +01:00
1 parent 0d55e4f6c9
commit ba09cfd8aa
1 file changed
+2 -2
+2 -2
View File
@@ -110,14 +110,14 @@ Then replace `print(...)` statements with one of the following:
try:
...
catch Exception:
except Exception:
# This logs at 'ERROR' level.
# Also automatically includes exception information.
logger.exception('An exception occurred')
try:
...
catch Exception as e:
except Exception as e:
logger.debug('Exception we only note in debug output', exc_info=e)
```