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