Private
Public Access
1
0

some fixes, honeypot registration

This commit is contained in:
2025-08-13 10:31:03 +02:00
parent 909aa2013e
commit 781321eadd
5 changed files with 68 additions and 4 deletions

View File

@@ -419,7 +419,10 @@ def createcourse(
longitude = point['longitude']
g = geocoder.arcgis([latitude, longitude], method='reverse')
if g.ok:
country = g.json['country']
try:
country = g.json['country']
except KeyError: # pragma: no cover
country = 'unknown'
else: # pragma: no cover
country = 'unknown'