diff --git a/redislite/client.py b/redislite/client.py index bd4843f..dfcc56a 100644 --- a/redislite/client.py +++ b/redislite/client.py @@ -106,8 +106,8 @@ def _cleanup(self, sys_modules=None): break time.sleep(.1) if process.is_running() and process.pid != 0: - logger.warning('Redis graceful shutdown failed, forcefully killing pid %r', self.pid) - os.kill(self.pid, signal.SIGKILL) + logger.warning('Redis graceful shutdown failed, forcefully killing pid %r', process.pid) + os.kill(process.pid, signal.SIGKILL) except psutil.NoSuchProcess: pass self.socket_file = None