Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Carlos Cordoba <[email protected]>
  • Loading branch information
dalthviz and ccordoba12 authored Feb 26, 2025
1 parent 35a68d3 commit 462ada4
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions spyder/plugins/variableexplorer/widgets/namespacebrowser.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,13 +382,14 @@ def load_data(self, filename, ext):
extensions=', '.join(IMPORT_EXT))
return msg
except TypeError:
msg = _("Spyder is unable to open the file "
"you're trying to load. This could be caused due to a "
"difference between the packages versions used to create "
"the data and the versions installed with the currently "
"selected interpreter. Please check the packages versions "
"used to create the data and their compatibility with the "
"packages versions installed.<br>")
msg = _(
"Spyder is unable to open the file you're trying to load. "
"This could be caused due to a difference between the package "
"versions used when you saved this spydata file and the ones "
"installed in the current environment. Please check the "
"compatibility between them (e.g. that you're using Numpy 2.x "
"in both environments).<br>"
)
except (UnpicklingError, RuntimeError, CommError):
return None

Expand Down

0 comments on commit 462ada4

Please sign in to comment.