diff --git a/src/octoprint/environment.py b/src/octoprint/environment.py index 35865ceb4..6b22a22ac 100644 --- a/src/octoprint/environment.py +++ b/src/octoprint/environment.py @@ -25,10 +25,15 @@ class EnvironmentDetector(object): self._cache = None self._cache_lock = threading.RLock() - self._environment_plugins = self._plugin_manager.get_implementations(EnvironmentDetectionPlugin) - self._logger = logging.getLogger(__name__) + try: + self._environment_plugins = self._plugin_manager.get_implementations(EnvironmentDetectionPlugin) + except Exception: + # just in case, see #3100... + self._logger.exception("There was an error fetching EnvironmentDetectionPlugins from the plugin manager") + self._environment_plugins = [] + @property def environment(self): with self._cache_lock: