Skip to content
Snippets Groups Projects
Commit 9479172b authored by Dan Michael O. Heggø's avatar Dan Michael O. Heggø
Browse files

Make DeprecationWarnings visible

parent 4d8abc40
No related branches found
No related tags found
No related merge requests found
...@@ -26,9 +26,13 @@ ...@@ -26,9 +26,13 @@
from errors import * from errors import *
from client import Site, __ver__ from client import Site, __ver__
import ex import ex
import logging
import warnings
# Show DeprecationWarning
warnings.simplefilter('always', DeprecationWarning)
# Logging: Add a null handler to avoid "No handler found" warnings. # Logging: Add a null handler to avoid "No handler found" warnings.
import logging
try: try:
from logging import NullHandler from logging import NullHandler
except ImportError: except ImportError:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment