Commit 291d2099 authored by jssuzanne's avatar jssuzanne
Browse files

Don t catch the exceptions

--HG--
branch : 8.0
parent 5b811ee5679f
......@@ -81,9 +81,6 @@ class AnyBusProfile(models.Model):
else:
raise Exception("Can publish message")
except Exception as e:
self.write({'error': str(e)})
return False
finally:
if channel and not channel.is_closed and not channel.is_closing:
channel.close()
......
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