From b147076e5a898136a0248bae1bbf743c3fac93a6 Mon Sep 17 00:00:00 2001 From: KeyserSosa Date: Thu, 24 Jul 2008 12:18:15 -0700 Subject: [PATCH] wrong error raised on Wrapped.__getattr__ failure --- r2/r2/lib/wrapped.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/r2/r2/lib/wrapped.py b/r2/r2/lib/wrapped.py index 1c2a51e9a..cb10b2c8c 100644 --- a/r2/r2/lib/wrapped.py +++ b/r2/r2/lib/wrapped.py @@ -47,7 +47,7 @@ class Wrapped(object): pass if not found: - raise NoTemplateFound, attr + raise AttributeError, attr setattr(self, attr, res) return res