Skip to content

Commit

Permalink
flake8: warnings.warn(stacklevel=2)
Browse files Browse the repository at this point in the history
  • Loading branch information
scivision committed Feb 26, 2023
1 parent dde1b9c commit b11460e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pymap3d/ellipsoid.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def from_name(cls, name: str) -> Ellipsoid | None:
"""Create an Ellipsoid from a name."""

if name not in cls.models:
warnings.warn(f"{name} model not implemented")
warnings.warn(f"{name} model not implemented", stacklevel=2)
return None

return cls(
Expand Down

0 comments on commit b11460e

Please sign in to comment.