Skip to content

Commit

Permalink
Merge pull request #72 from tynanford/master
Browse files Browse the repository at this point in the history
fix crash on blank infotags property
  • Loading branch information
tynanford authored Aug 17, 2023
2 parents 1d0208e + 40b97f6 commit 88665ce
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions server/recceiver/cfstore.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,10 @@ def _startServiceWithLock(self):
for epics_env_var_name, cf_prop_name in self.env_vars.items():
reqd_props.add(cf_prop_name)
wl = self.conf.get('infotags', list())
whitelist = [s.strip(', ') for s in wl.split()] \
if wl else wl
if wl:
whitelist = [s.strip(', ') for s in wl.split()]
else:
whitelist = []
if (self.conf.get('recordDesc', 'default') == 'on'):
whitelist.append('recordDesc')
# Are any required properties not already present on CF?
Expand Down

0 comments on commit 88665ce

Please sign in to comment.