We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c23b0a3 commit 0329681Copy full SHA for 0329681
CHANGES.txt
@@ -17,6 +17,8 @@ Fixed:
17
18
- encoding for SSHA encoded passwords with Python 3 (Christof
19
Meerwald)
20
+- exception in logout action when there is no session (Christof
21
+ Meerwald)
22
23
2020-04-05 2.0.0 beta 0
24
roundup/cgi/client.py
@@ -198,8 +198,9 @@ def clean_up(self):
198
def destroy(self):
199
self.client.add_cookie(self.cookie_name, None)
200
self._data = {}
201
- self.session_db.destroy(self._sid)
202
- self.session_db.commit()
+ if self._sid:
+ self.session_db.destroy(self._sid)
203
+ self.session_db.commit()
204
205
def get(self, name, default=None):
206
return self._data.get(name, default)
0 commit comments