# HG changeset patch # User Julien Cristau # Date 1422456821 -3600 # Node ID facbb38c4c1ab1e50be796286d74ef1c5f141ab4 # Parent 0d3ede4865a86436b9757454784cf48e7b7d1d3b [exceptions] avoid calling UniqueExceptionError.rtypes after closing the session diff -r 0d3ede4865a8 -r facbb38c4c1a _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):