AttributeError chaining bug #1944 fix
This commit is contained in:
		
							parent
							
								
									8639bf7554
								
							
						
					
					
						commit
						65be1231b1
					
				|  | @ -205,9 +205,8 @@ class PyobjContext(object): | ||||||
| class PyobjMixin(PyobjContext): | class PyobjMixin(PyobjContext): | ||||||
|     def obj(): |     def obj(): | ||||||
|         def fget(self): |         def fget(self): | ||||||
|             try: |             obj = getattr(self, '_obj', None) | ||||||
|                 return self._obj |             if obj is None: | ||||||
|             except AttributeError: |  | ||||||
|                 self._obj = obj = self._getobj() |                 self._obj = obj = self._getobj() | ||||||
|             return obj |             return obj | ||||||
|         def fset(self, value): |         def fset(self, value): | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue