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

Update __init__.py #2500

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Update __init__.py #2500

wants to merge 1 commit into from

Conversation

jolivetr
Copy link

Rationale

fh_getter fails when fh is a PosixPath because it attempts at checking filename, which has not been initialized.

Fix

Initialize filename to None

Implications

Minimal

fh_getter fails when fh is a PosixPath because it attempts at checking filename, which has not been initialized.

Fix: Initialize filename to None
@jolivetr
Copy link
Author

A very tiny fix in fh_getter for cartopy.io.
A variable was tested and not initialized.
Fix: Intitialize the variable

@dopplershift
Copy link
Contributor

I like the fix, I'm wondering if we can add a test. What were you doing to trigger this error in the first place?

@QuLogic
Copy link
Member

QuLogic commented Feb 20, 2025

Please update the commit message/PR title to be clearer about the change.

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.

3 participants