Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Catch folder_name == None in onFolderSelected #158

Open
rodolakis opened this issue Jun 13, 2024 · 0 comments
Open

Catch folder_name == None in onFolderSelected #158

rodolakis opened this issue Jun 13, 2024 · 0 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@rodolakis
Copy link
Collaborator

Refreshing folder...

Traceback (most recent call last):
  File "/home/beams3/RODOLAKIS/src/mdaviz/mdaviz/mainwindow.py", line 214, in onRefresh
    self.onFolderSelected(current_folder)
  File "/home/beams3/RODOLAKIS/src/mdaviz/mdaviz/mainwindow.py", line 179, in onFolderSelected
    folder_path = Path(folder_name)
                  ^^^^^^^^^^^^^^^^^
  File "/home/beams/RODOLAKIS/.conda/envs/mdaviz/lib/python3.11/pathlib.py", line 871, in __new__
    self = cls._from_parts(args)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/home/beams/RODOLAKIS/.conda/envs/mdaviz/lib/python3.11/pathlib.py", line 509, in _from_parts
    drv, root, parts = self._parse_args(args)
                       ^^^^^^^^^^^^^^^^^^^^^^
  File "/home/beams/RODOLAKIS/.conda/envs/mdaviz/lib/python3.11/pathlib.py", line 493, in _parse_args
    a = os.fspath(a)
        ^^^^^^^^^^^^
TypeError: expected str, bytes or os.PathLike object, not NoneType
Aborted (core dumped)
@rodolakis rodolakis added the bug Something isn't working label Jun 13, 2024
@rodolakis rodolakis added this to the v1.1 milestone Jun 13, 2024
@rodolakis rodolakis self-assigned this Jun 13, 2024
@rodolakis rodolakis added this to mdaviz Jun 13, 2024
@rodolakis rodolakis moved this to Next Release in mdaviz Jun 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Next Release
Development

No branches or pull requests

1 participant