From 5b0ed9ca91c7f08ac7101aa73ec2be957492b1e2 Mon Sep 17 00:00:00 2001 From: Ravinder Nehra Date: Tue, 27 Jun 2017 15:04:11 +0530 Subject: [PATCH] Fix #160 (#162) fix docker issues --- tanner/session_manager.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tanner/session_manager.py b/tanner/session_manager.py index 8d3e613e..360c8b89 100644 --- a/tanner/session_manager.py +++ b/tanner/session_manager.py @@ -71,7 +71,8 @@ async def delete_old_sessions(self, redis_client): if not sess.is_expired(): continue await sess.remove_associated_db() - await sess.remove_associated_env() + if sess.associated_env is not None: + await sess.remove_associated_env() self.sessions.remove(sess) try: await redis_client.set(sess.get_uuid(), sess.to_json())