Skip to content
Snippets Groups Projects
Commit 0f0734a9 authored by Sebastien Luttringer's avatar Sebastien Luttringer
Browse files

Doesn't display warning when we are not in debug mode

parent a7fbf0de
No related branches found
No related tags found
No related merge requests found
......@@ -12,6 +12,7 @@ import time
import datetime
import re
import fnmatch
import warnings
import installsystems
import installsystems.tools as istools
import installsystems.argparse as argparse # to be removed when python2.7
......@@ -469,6 +470,10 @@ try:
# set debug and quiet mode after merge
installsystems.debug = args.debug
installsystems.quiet = args.quiet
# no warning if we are not in debug mode
if not installsystems.debug:
warnings.filterwarnings("ignore")
# except for install command we parse all args!
if args.func is not c_install:
args = p_main.parse_args(namespace=args)
# let's go
......
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