Commit 43c3f171 by Piotr Mitros

Exception was failing

parent 7232fcc0
...@@ -4,5 +4,6 @@ from djanalytics.core.decorators import event_handler ...@@ -4,5 +4,6 @@ from djanalytics.core.decorators import event_handler
@event_handler() @event_handler()
def dump_to_db(db, events): def dump_to_db(db, events):
## TODO: Error handling
collection = db['event_log'] collection = db['event_log']
collection.insert([e.event for e in events]) collection.insert([e.event for e in events])
...@@ -90,7 +90,7 @@ class embed(): ...@@ -90,7 +90,7 @@ class embed():
try: try:
rpcspec = find_in_schema(cls = self._view_or_query, name = attr)[0] rpcspec = find_in_schema(cls = self._view_or_query, name = attr)[0]
except IndexError: except IndexError:
raise AttributeError(function) raise AttributeError(attr)
category = rpcspec['category'] category = rpcspec['category']
def_params = category.replace('+',',') # Is this still needed? def_params = category.replace('+',',') # Is this still needed?
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment