Minor patch

This commit is contained in:
Miroslav Stampar
2019-12-18 12:29:07 +01:00
parent b4f9bf3f21
commit c96283a083
2 changed files with 2 additions and 2 deletions

View File

@@ -2630,7 +2630,7 @@ def debug(mode=True):
""" Change the debug level.
There is only one debug level supported at the moment."""
global DEBUG
if mode: warnings.simplefilter('default')
#if mode: warnings.simplefilter('default') # neutralizing already set warning filters (e.g. DeprecationWarning inside sqlmapapi.py)
DEBUG = bool(mode)