diff --git a/spyder/plugins/updatemanager/workers.py b/spyder/plugins/updatemanager/workers.py index 773eef09e41..5006558c8be 100644 --- a/spyder/plugins/updatemanager/workers.py +++ b/spyder/plugins/updatemanager/workers.py @@ -104,7 +104,7 @@ def start(self): elif is_anaconda(): self.channel, channel_url = get_spyder_conda_channel() - if channel_url is None: + if self.channel is None or channel_url is None: return elif self.channel == "pypi": url = pypi_url diff --git a/spyder/utils/conda.py b/spyder/utils/conda.py index b34f2ff1f6a..bf7e2518f70 100644 --- a/spyder/utils/conda.py +++ b/spyder/utils/conda.py @@ -184,7 +184,7 @@ def get_spyder_conda_channel(): conda = find_conda() if conda is None: - return None + return None, None env = get_conda_env_path(sys.executable) cmdstr = ' '.join([conda, 'list', 'spyder', '--json', '--prefix', env]) @@ -194,7 +194,7 @@ def get_spyder_conda_channel(): out = out.decode() out = json.loads(out) except Exception: - return None + return None, None for package_info in out: if package_info["name"] == 'spyder':