Skip to content

Commit

Permalink
get_cc: 'SessionManager' object has no attribute 'delete': Fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
ralphwetzel committed Oct 30, 2019
1 parent fd5f17f commit 2f5aaf3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion theonionbox/stamp.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__title__ = 'The Onion Box'
__description__ = 'Dashboard to monitor Tor node operations.'
__version__ = '19.2b3'
__stamp__ = '20191030|211945'
__stamp__ = '20191030|213008'
4 changes: 2 additions & 2 deletions theonionbox/tob/apps/controlcenter.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,12 +209,12 @@ def get_cc(self, session):
self.sessions.get_remote_address(session.id)))

if session['status'] not in ['ok', 'auto', 'frame']:
self.sessions.delete(session.id)
self.sessions.delete_session(session)
self.redirect('/')

node = session['node']
if node is None:
self.sessions.delete(session.id)
self.sessions.delete_session(session)
self.redirect('/')

# This indicates the session is now the CC frame
Expand Down

0 comments on commit 2f5aaf3

Please sign in to comment.