Commit 0804682a authored by Federico Sismondi's avatar Federico Sismondi

NonImplementedError methods should be raising the execption instead of...

NonImplementedError methods should be raising the execption instead of returning it, this way the Exception is not passed silently
parent 28b21138
...@@ -99,7 +99,7 @@ class BaseConsumer(ConsumerMixin): ...@@ -99,7 +99,7 @@ class BaseConsumer(ConsumerMixin):
def _on_message(self, message): def _on_message(self, message):
"Class to be overridden by children class" "Class to be overridden by children class"
return NotImplementedError() raise NotImplementedError()
def on_consume_ready(self, connection, channel, consumers, wakeup=True, **kwargs): def on_consume_ready(self, connection, channel, consumers, wakeup=True, **kwargs):
# control plane info # control plane info
......
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