Skip to content

Commit

Permalink
using callable method to check if handler is class. (#978)
Browse files Browse the repository at this point in the history
  • Loading branch information
dichouhan authored Jun 20, 2023
1 parent 81b7e66 commit 4e82e05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cryptofeed/backends/aggregate.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
class AggregateCallback:
def __init__(self, handler):
self.handler = handler
if hasattr(self.handler, '__class__'):
if not callable(self.handler):
setattr(self, 'start', self.handler.start)
setattr(self, 'stop', self.handler.stop)
self.__name__ = self.handler.__class__
Expand Down

0 comments on commit 4e82e05

Please sign in to comment.