Skip to content

Commit

Permalink
remove try except for checkInternetAccess
Browse files Browse the repository at this point in the history
  • Loading branch information
jbleyel committed Jun 18, 2023
1 parent 95cdcc2 commit 69ad3e0
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions lib/python/Tools/Geolocation.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
from json import loads
from requests import exceptions, get
from twisted.internet.reactor import callInThread
from enigma import checkInternetAccess

try:
from enigma import checkInternetAccess
except ImportError:
def checkInternetAccess(host, timeout):
return = len(host) * int(timeout) * 0 # This resolves the SONAR smell.

# Data available from http://ip-api.com/json/:
#
Expand Down

0 comments on commit 69ad3e0

Please sign in to comment.