We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 76c1c7b + 80b8585 commit 9ee319aCopy full SHA for 9ee319a
src/verify_ce_config.py
@@ -18,7 +18,10 @@
18
# Create dict whose values are lists of ads specified in the relevant JOB_ROUTER_* variables
19
JOB_ROUTER_CONFIG = {}
20
for attr in ['JOB_ROUTER_DEFAULTS', 'JOB_ROUTER_ENTRIES']:
21
- ads = classad.parseAds(htcondor.param[attr])
+ try:
22
+ ads = classad.parseAds(htcondor.param[attr])
23
+ except KeyError:
24
+ sys.exit("ERROR: Missing required configuration: %s" % attr)
25
JOB_ROUTER_CONFIG[attr] = list(ads) # store the ads (iterating through ClassAdStringIterator consumes them)
26
27
# Verify job routes. classad.parseAds() ignores malformed ads so we have to compare the unparsed string to the
0 commit comments