Skip to content

Commit

Permalink
Merge d6586ca into 9d6d215
Browse files Browse the repository at this point in the history
  • Loading branch information
dbarrell committed Jun 1, 2018
2 parents 9d6d215 + d6586ca commit 5d64033
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyclarity_lims/entities.py
Original file line number Diff line number Diff line change
Expand Up @@ -852,7 +852,7 @@ def available_programs(self):
if not self._available_programs:
self._available_programs = []
available_programs_et = self.root.find('available-programs')
if available_programs_et:
if available_programs_et is not None and len(available_programs_et) > 0:
for ap in available_programs_et.findall('available-program'):
self._available_programs.append((ap.attrib['name'], ap.attrib['uri']))
return self._available_programs
Expand Down

0 comments on commit 5d64033

Please sign in to comment.