make quantifiedcode and codacy happier

This commit is contained in:
Alexander Kukushkin
2016-02-12 15:53:24 +01:00
parent ab0ef91f24
commit 544ecdc1be
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -253,7 +253,7 @@ class RestApiHandler(BaseHTTPRequestHandler):
return {'tags': self.server.patroni.tags}
def log_message(self, fmt, *args):
logger.debug("API thread: %s - - [%s] %s", self.client_address[0], self.log_date_time_string() + fmt % args)
logger.debug("API thread: %s - - [%s] %s", self.client_address[0], self.log_date_time_string(), fmt % args)
class RestApiServer(ThreadingMixIn, HTTPServer, Thread):
+1 -1
View File
@@ -50,5 +50,5 @@ class AsyncExecutor(object):
def __enter__(self):
self._thread_lock.acquire()
def __exit__(self, exc_type, exc_value, exc_traceback):
def __exit__(self, *args):
self._thread_lock.release()