s+: format and check

This commit is contained in:
Mark Joshwel 2023-09-05 04:39:40 +00:00
parent fa1fff9602
commit f6de01a029

View file

@ -1054,7 +1054,9 @@ def surplus(query: Query | str, behaviour: Behaviour) -> Result[str]:
print(f"debug: cli: {latlong.get()=}", file=behaviour.stderr) print(f"debug: cli: {latlong.get()=}", file=behaviour.stderr)
try: try:
pluscode: str = _PlusCode_encode(lat=latlong.get().latitude, lon=latlong.get().longitude) pluscode: str = _PlusCode_encode(
lat=latlong.get().latitude, lon=latlong.get().longitude
)
except Exception as exc: except Exception as exc:
return Result[str]("", error=exc) return Result[str]("", error=exc)