Skip to content

Commit

Permalink
Probably fixed parse args problem.
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul-Ferrell committed Aug 19, 2024
1 parent 7bb968d commit 553d70f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/pavilion/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,11 @@ def main():
# This has to be done before we initialize plugins
parser = arguments.get_parser()

# Just need the show_tracebacks flag here
partial_args, _ = parser.parse_known_args()

# Get the Pavilion config
try:
pav_cfg = config.find_pavilion_config()
except Exception as err:
if not partial_args.show_tracebacks:
if not '--show-tracebacks' in sys.argv:
output.fprint(sys.stderr, "Error getting config, exiting.", err, color=output.RED)
else:
print(traceback.format_exc())
Expand Down

0 comments on commit 553d70f

Please sign in to comment.