Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e92a8cf

Browse files
committed
fix: import of local style with ./ in name fixed.
1 parent 55f4e2a commit e92a8cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/style/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ def use(style):
153153
path = (importlib_resources.files(pkg)
154154
/ f"{name}.{STYLE_EXTENSION}")
155155
style = _rc_params_in_file(path)
156-
except (ModuleNotFoundError, OSError) as exc:
156+
except (ModuleNotFoundError, OSError, TypeError) as exc:
157157
# There is an ambiguity whether a dotted name refers to a
158158
# package.style_name or to a dotted file path. Currently,
159159
# we silently try the first form and then the second one;

0 commit comments

Comments
 (0)