Commit 01437d68 authored by Federico Sismondi's avatar Federico Sismondi

bugfix

parent 246fc828
......@@ -198,7 +198,8 @@ class RabbitMQHandler(logging.Handler):
)
def close(self):
self.channel.close()
if self.channel:
self.channel.close()
if __name__ == "__main__":
......
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