Handle exceptions when trying to start resolver thread
This commit is contained in:
parent
7563d97be4
commit
7743cc44fa
1 changed files with 4 additions and 1 deletions
|
@ -130,7 +130,10 @@ class IPResolver(IPResolverInterface):
|
|||
|
||||
def _get_location_function(self):
|
||||
if not self.app.config.get('TESTING', False) and not self._worker.is_alive():
|
||||
self._worker.start()
|
||||
try:
|
||||
self._worker.start()
|
||||
except:
|
||||
logger.exception('Got exception try to start ip resolver thread')
|
||||
try:
|
||||
cache = CACHE
|
||||
sync_token = cache.get('sync_token', None)
|
||||
|
|
Reference in a new issue