Skip to content

Commit

Permalink
Update aggregate.py
Browse files Browse the repository at this point in the history
  • Loading branch information
bmoscon authored Sep 22, 2024
1 parent 611ca65 commit 87bb43a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions cryptofeed/backends/aggregate.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,7 @@
class AggregateCallback:
def __init__(self, handler):
self.handler = handler
if (
hasattr(self.handler, "__class__")
and hasattr(self.handler, "start")
and hasattr(self.handler, "stop")
):
if hasattr(self.handler, "__class__") and hasattr(self.handler, "start") and hasattr(self.handler, "stop"):
setattr(self, "start", self.handler.start)
setattr(self, "stop", self.handler.stop)
self.__name__ = self.handler.__class__
Expand Down

0 comments on commit 87bb43a

Please sign in to comment.