[exceptions] avoid calling UniqueExceptionError.rtypes after closing the session
authorJulien Cristau <julien.cristau@logilab.fr>
Wed, 28 Jan 2015 15:53:41 +0100
changeset 10320 facbb38c4c1a
parent 10319 0d3ede4865a8
child 10321 a4af502191d5
[exceptions] avoid calling UniqueExceptionError.rtypes after closing the session
_exceptions.py
--- a/_exceptions.py	Wed Apr 22 12:05:09 2015 +0200
+++ b/_exceptions.py	Wed Jan 28 15:53:41 2015 +0100
@@ -82,6 +82,8 @@
         self.session = session
         assert 'rtypes' in kwargs or 'cstrname' in kwargs
         self.kwargs = kwargs
+        # fill cache while the session is open
+        self.rtypes
 
     @cachedproperty
     def rtypes(self):