Skip to content
This repository has been archived by the owner on Feb 20, 2018. It is now read-only.

Commit

Permalink
Merge pull request #187 from 2gis/dont-closing-session-if-session-alr…
Browse files Browse the repository at this point in the history
…eady-closed

Dont closing session if session already closed
  • Loading branch information
sh0ked authored Jun 16, 2016
2 parents b01d869 + 524243d commit 96fd6ff
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/sessions.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,8 @@ def failed(self, tb=None, reason=None):
log.warn("Session %s already closed with reason %s. "
"In this method call was tb='%s' and reason='%s'"
% (self.id, self.reason, tb, reason))
return

self.status = "failed"
self.error = tb
self.close(reason)
Expand Down

0 comments on commit 96fd6ff

Please sign in to comment.