Commits

Georg Brandl  committed 0e24a9a

Raise the exception instead of returning it.

  • Participants
  • Parent commits 528a6fb

Comments (0)

Files changed (1)

File werkzeug/local.py

         try:
             return self._get_current_object().__dict__
         except RuntimeError:
-            return AttributeError('__dict__')
+            raise AttributeError('__dict__')
 
     def __repr__(self):
         try: