Skip to content

Commit

Permalink
Silence warning
Browse files Browse the repository at this point in the history
  • Loading branch information
edan-bainglass committed Dec 11, 2024
1 parent fd8c1b0 commit 9b30bf7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions aiidalab_widgets_base/computational_resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -1302,6 +1302,10 @@ def _observe_code_setup(self, _=None):
for key, value in self.code_setup.items():
if hasattr(self, key):
if key == "default_calc_job_plugin":
if "None" in value:
# HACK to avoid the warning message
# TODO investigate why it's "None"
return
try:
self.default_calc_job_plugin.value = value
except tl.TraitError:
Expand Down

0 comments on commit 9b30bf7

Please sign in to comment.