From 4834c281cb9671bda85a386f81495cd321da9032 Mon Sep 17 00:00:00 2001 From: Kenny Lee Sin Cheong Date: Fri, 7 Sep 2018 13:50:56 -0400 Subject: [PATCH] nit: styling --- util/ipresolver/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util/ipresolver/__init__.py b/util/ipresolver/__init__.py index 77d97a9cb..40a2b109d 100644 --- a/util/ipresolver/__init__.py +++ b/util/ipresolver/__init__.py @@ -130,8 +130,8 @@ class IPResolver(IPResolverInterface): return location_function(ip_address) def _get_location_function(self): - if not self.app.config.get('TESTING', False) and not self._worker.is_alive() and \ - not self._worker_started: + if (not self.app.config.get('TESTING', False) and not self._worker_started and + not self._worker.is_alive()): try: self._worker.start() self._worker_started = True