diff --git a/dcm/dcm_webserver.py b/dcm/dcm_webserver.py index e96ddea..bdb4b95 100644 --- a/dcm/dcm_webserver.py +++ b/dcm/dcm_webserver.py @@ -510,7 +510,7 @@ def assess_state(self): in the UI """ self.save_session_state() - if self.learner is None: + if self.dcm and self.learner is None: # allow creating a new learner self.assessment_button.enable() else: