Commits

Mike Bayer  committed 1d840a2

assertion

  • Participants
  • Parent commits 41ca29f

Comments (0)

Files changed (1)

File lib/sqlalchemy/mapping/objectstore.py

             try:
                 return _sessions[hashkey]
             except KeyError:
-                # oh, its gone, nevermind
-                pass
+                raise "Session '%s' referenced by object '%s' no longer exists" % (hashkey, repr(obj))
 
     try:
         # have a thread-locally defined session (via using_session) ?