mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-02-03 03:05:02 -05:00
wrong error raised on Wrapped.__getattr__ failure
This commit is contained in:
@@ -47,7 +47,7 @@ class Wrapped(object):
|
||||
pass
|
||||
|
||||
if not found:
|
||||
raise NoTemplateFound, attr
|
||||
raise AttributeError, attr
|
||||
|
||||
setattr(self, attr, res)
|
||||
return res
|
||||
|
||||
Reference in New Issue
Block a user