diff --git a/spyder/utils/conda.py b/spyder/utils/conda.py index 55a35ccf252..a0da5089315 100644 --- a/spyder/utils/conda.py +++ b/spyder/utils/conda.py @@ -228,6 +228,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"]