From 881d2a60a4e1ef357dcf9fcfb5375f8dc3dd2163 Mon Sep 17 00:00:00 2001 From: Murtuza Zabuawala Date: Mon, 19 Sep 2016 15:57:52 +0100 Subject: [PATCH] Fix an exception that could occur when the browser pings the server following a restart. Fixes #1707 --- web/pgadmin/utils/driver/psycopg2/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/pgadmin/utils/driver/psycopg2/__init__.py b/web/pgadmin/utils/driver/psycopg2/__init__.py index 95aa95cab..1f7773b33 100644 --- a/web/pgadmin/utils/driver/psycopg2/__init__.py +++ b/web/pgadmin/utils/driver/psycopg2/__init__.py @@ -1735,7 +1735,7 @@ class Driver(BaseDriver): for sess in self.managers: sess_mgr = self.managers[sess] - if sess == session['_id']: + if sess == session.get('_id'): sess_mgr['pinged'] = curr_time continue