Skip to content

fix: nonetype error when creating new folder #57

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

Merged
merged 1 commit into from
Jul 20, 2024

Conversation

gerardroche
Copy link
Contributor

The new command uses the active view file name as the path from which to construct the new folder, but when the view is empty there is no real file on disk and the file name is None.

The os.path functions like isdir and exists raise a NoneType exception when given None. This patch adds a NoneType check.

Close #55
Re #56

The new command uses the active view file name as the path from which to
construct the new folder, but when the view is empty there is no real
file on disk and the file name is None.

The `os.path` functions like `isdir` and `exists` raise a NoneType
exception when given None. This patch adds a NoneType check.

Close braver#55
Re braver#56
@braver
Copy link
Owner

braver commented Jul 20, 2024

Thanks!

@braver braver merged commit 3e38f62 into braver:master Jul 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NoneType error on OSx
2 participants