We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b35d092 commit bc1be94Copy full SHA for bc1be94
roundup/cgi/templating.py
@@ -191,7 +191,10 @@ def __init__(self, client):
191
self.client = client
192
self.config = client.db.config
193
def __getattr__(self, attr):
194
- self.client.db.getclass(attr)
+ try:
195
+ self.client.db.getclass(attr)
196
+ except KeyError:
197
+ raise AttributeError, attr
198
return HTMLClass(self.client, attr)
199
def classes(self):
200
l = self.client.db.classes.keys()
0 commit comments