Disable warning message but in debug mode

This commit is contained in:
nicolargo
2017-12-30 22:28:21 +01:00
parent 35b671fa92
commit b637c7c7e8

View File

@@ -244,6 +244,9 @@ Examples of use:
if args.debug:
from logging import DEBUG
logger.setLevel(DEBUG)
else:
from warnings import simplefilter
simplefilter("ignore")
# Plugins disable/enable
if args.disable_plugin is not None: