Commit 2d0f77e5 authored by Sylvain Thénault's avatar Sylvain Thénault
Browse files

[session] use isinstance instead of testing value of is_super_session since we...

[session] use isinstance instead of testing value of is_super_session since we hack it in the add_relation method

--HG--
branch : stable
parent 51bcd8e8f65c
......@@ -330,7 +330,7 @@ class Session(RequestSessionMixIn):
try:
csession = self._threaddata.childsession
except AttributeError:
if self.is_super_session:
if isinstance(self, (ChildSession, InternalSession)):
csession = self
else:
csession = ChildSession(self)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment