Skip to content

Commit

Permalink
Merge from 5.x: PR #21723
Browse files Browse the repository at this point in the history
Fixes #21711
  • Loading branch information
ccordoba12 committed Jan 19, 2024
2 parents 31ba45f + 5ae26aa commit 66cfd5e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion spyder/plugins/updatemanager/workers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions spyder/utils/conda.py
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand All @@ -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':
Expand Down

0 comments on commit 66cfd5e

Please sign in to comment.