core: cleanup/sort imports according to ruff check --select I
This commit is contained in:
parent
7023088d13
commit
478e288ea8
45 changed files with 235 additions and 170 deletions
|
@ -41,9 +41,9 @@ def locations_to_gpx(locations: Iterable[LocationProtocol], buffer: TextIO) -> I
|
|||
try:
|
||||
import gpxpy.gpx
|
||||
except ImportError as ie:
|
||||
from my.core.warnings import warn
|
||||
from my.core.warnings import high
|
||||
|
||||
warn("gpxpy not installed, cannot write to gpx. 'pip install gpxpy'")
|
||||
high("gpxpy not installed, cannot write to gpx. 'pip install gpxpy'")
|
||||
raise ie
|
||||
|
||||
gpx = gpxpy.gpx.GPX()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue