Skip to content
This repository has been archived by the owner on Oct 10, 2019. It is now read-only.

Commit

Permalink
Merge pull request #62 from brianhlin/v1_18_bosco
Browse files Browse the repository at this point in the history
Fix uncaught exception when config doesn't contain pbs_pro
  • Loading branch information
djw8605 authored Aug 28, 2017
2 parents ac74598 + ec6f1f4 commit 4a8fef9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scripts/pbs_status.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ def qstat(jobid=""):
starttime = time.time()
log("Starting qstat.")
command = (qstat_bin, '-f')
if config.get('pbs_pro').lower() != 'yes':
if config.has_option('pbs_pro') and config.get('pbs_pro').lower() != 'yes':
command += ('-1',) # -1 conflicts with -f in PBS Pro
if jobid:
command += (jobid,)
Expand Down

0 comments on commit 4a8fef9

Please sign in to comment.