Skip to content

Commit

Permalink
fix getting config when a datagroup might be missing
Browse files Browse the repository at this point in the history
  • Loading branch information
newville committed Jun 26, 2024
1 parent 4966ea4 commit c30662c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions larch/wxxas/taskpanel.py
Original file line number Diff line number Diff line change
Expand Up @@ -379,9 +379,10 @@ def update_config(self, config, dgroup=None):
"""set/update processing configuration for a group"""
if dgroup is None:
dgroup = self.controller.get_group()
conf = getattr(dgroup, 'config', None)
if conf is None:
conf = getattr(dgroup.config, self.configname, None)
conf = None
dconf = getattr(dgroup, 'config', None)
if dconf is not None:
conf = getattr(dconf, self.configname, None)
if conf is None:
conf = self.get_defaultconfig()

Expand Down

0 comments on commit c30662c

Please sign in to comment.