You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 13, 2021. It is now read-only.
During a recent PFPy meeting, a question has been raised about using with the logging module. Following a previous suggestion that was made to me during a PyConUS discussion, I was already planning to investigate capturing and processing Warnings with the logging module (https://docs.python.org/3/library/logging.html#logging.captureWarnings), thus enhancing friendly using the logging module. However, I had not thought about the reverse, that is using friendly to supplement the logging module.
At the time, I mentioned that that this might simply require to use friendly.install(), but at the very least, I need to confirm this and add a section to the documentation. However, it might require more than this, for example, using the redirect="capture" option togther with some special function of the logging module.
So, briefly:
figure out how to make friendly work with the logging module
add a section to the documentation.
The text was updated successfully, but these errors were encountered:
ERROR:root:
Traceback (most recent call last):
File "ignore.py", line 10, in <module>
c = a / b
ZeroDivisionError: division by zero
Une exception de type `ZeroDivisionError` se produit lorsque vous essayez de diviser une valeur
par zéro soit directement ou en utilisant une autre opération mathématique.
Vous divisez par le terme suivant
b
qui est égal à zéro.
Exception levée à la ligne 10 du fichier ignore.py.
8: b = 0
9: try:
-->10: c = a / b
^^^^^
11: except Exception:
a: 1
b: 0
During a recent PFPy meeting, a question has been raised about using with the logging module. Following a previous suggestion that was made to me during a PyConUS discussion, I was already planning to investigate capturing and processing
Warnings
with the logging module (https://docs.python.org/3/library/logging.html#logging.captureWarnings), thus enhancing friendly using the logging module. However, I had not thought about the reverse, that is using friendly to supplement the logging module.At the time, I mentioned that that this might simply require to use
friendly.install()
, but at the very least, I need to confirm this and add a section to the documentation. However, it might require more than this, for example, using theredirect="capture"
option togther with some special function of the logging module.So, briefly:
The text was updated successfully, but these errors were encountered: