Skip to content

Commit

Permalink
Fixes LGTM analysis error : Unreachable statement
Browse files Browse the repository at this point in the history
  • Loading branch information
arabnejad committed Mar 23, 2021
1 parent 58f1532 commit a5e7d06
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions base/fab.py
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ def job(*job_args):
if not hasattr(env, 'job_config_path'):
raise RuntimeError('Function with_config did NOT called, '
'Please call it before calling job()')
sys.exit()
# sys.exit()

update_environment(args)
# Add label, mem, core to env.
Expand Down Expand Up @@ -943,7 +943,7 @@ def run_ensemble(config, sweep_dir, sweep_on_remote=False,
if not hasattr(env, 'job_config_path'):
raise RuntimeError('Function with_config did NOT called, '
'Please call it before calling run_ensemble()')
sys.exit()
# sys.exit()

# check for PilotJob option
if(hasattr(env, 'PJ') and env.PJ.lower() == 'true'):
Expand Down

0 comments on commit a5e7d06

Please sign in to comment.