Fix an exception that could occur when the browser pings the server following a restart. Fixes #1707

This commit is contained in:
Murtuza Zabuawala 2016-09-19 15:57:52 +01:00 committed by Dave Page
parent 2440f89a71
commit 881d2a60a4

View File

@ -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