Skip to content

Commit 553d70f

Browse files
committed
Probably fixed parse args problem.
1 parent 7bb968d commit 553d70f

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lib/pavilion/main.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,11 @@ def main():
4747
# This has to be done before we initialize plugins
4848
parser = arguments.get_parser()
4949

50-
# Just need the show_tracebacks flag here
51-
partial_args, _ = parser.parse_known_args()
52-
5350
# Get the Pavilion config
5451
try:
5552
pav_cfg = config.find_pavilion_config()
5653
except Exception as err:
57-
if not partial_args.show_tracebacks:
54+
if not '--show-tracebacks' in sys.argv:
5855
output.fprint(sys.stderr, "Error getting config, exiting.", err, color=output.RED)
5956
else:
6057
print(traceback.format_exc())

0 commit comments

Comments
 (0)