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

don't crash if no path (#55) #56

Merged
merged 1 commit into from
Jul 18, 2024
Merged

don't crash if no path (#55) #56

merged 1 commit into from
Jul 18, 2024

Conversation

braver
Copy link
Owner

@braver braver commented May 20, 2024

No description provided.

@braver braver self-assigned this May 20, 2024
@braver braver mentioned this pull request May 20, 2024
@braver
Copy link
Owner Author

braver commented Jul 18, 2024

probably can't hurt to merge this anyway 🤷🏻

@braver braver merged commit cce1a87 into master Jul 18, 2024
1 check passed
@braver braver deleted the fix/no-path-for-new branch July 18, 2024 18:16
gerardroche added a commit to gerardroche/SideBarTools that referenced this pull request Jul 19, 2024
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 pushed a commit that referenced this pull request Jul 20, 2024
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
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.

1 participant