Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
javrasya committed Sep 1, 2015
1 parent 9c5e93a commit b45547e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion river/handlers/backends/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def __register(self, handler_objs):
for handler in handler_objs:
module, method = handler.method.rsplit('.', 1)
try:
method = getattr(__import__(module, fromlist=[method]), method)
method = getattr(__import__(module, fromlist=[method]), method, None)
if method:
self.handlers[handler.hash] = method
handlers.append(method)
Expand Down

0 comments on commit b45547e

Please sign in to comment.