Skip to content

Commit

Permalink
add check to allow more operations without a valid data group
Browse files Browse the repository at this point in the history
  • Loading branch information
newville committed May 28, 2024
1 parent 5664d84 commit f1a5861
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion larch/wxxas/taskpanel.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,8 @@ 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, self.configname, None)
if hasattr(dgroup, 'config'):
conf = getattr(dgroup.config, self.configname, None)
if conf is None:
conf = self.get_defaultconfig()

Expand Down

0 comments on commit f1a5861

Please sign in to comment.