Skip to content

Commit

Permalink
Merge from 5.x: PR #21997
Browse files Browse the repository at this point in the history
Fixes #22007
  • Loading branch information
ccordoba12 committed Apr 19, 2024
2 parents 0f6b0b3 + 1d17d91 commit a9f952a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spyder/utils/conda.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,10 @@ def get_spyder_conda_channel():
except Exception:
return None, None

# Avoids iterating over non-dict objects
if 'error' in out:
return None, None

for package_info in out:
if package_info["name"] == 'spyder':
channel = package_info["channel"]
Expand Down

0 comments on commit a9f952a

Please sign in to comment.