nit: styling
This commit is contained in:
parent
105a7c0ea6
commit
4834c281cb
1 changed files with 2 additions and 2 deletions
|
@ -130,8 +130,8 @@ class IPResolver(IPResolverInterface):
|
||||||
return location_function(ip_address)
|
return location_function(ip_address)
|
||||||
|
|
||||||
def _get_location_function(self):
|
def _get_location_function(self):
|
||||||
if not self.app.config.get('TESTING', False) and not self._worker.is_alive() and \
|
if (not self.app.config.get('TESTING', False) and not self._worker_started and
|
||||||
not self._worker_started:
|
not self._worker.is_alive()):
|
||||||
try:
|
try:
|
||||||
self._worker.start()
|
self._worker.start()
|
||||||
self._worker_started = True
|
self._worker_started = True
|
||||||
|
|
Reference in a new issue