Browse Source

Skip Uncaught exception in osv which is a duplicate error

pull/44/head
Sandy Carter 10 years ago
parent
commit
b5b517ac79
  1. 2
      sentry_logger/odoo_sentry_handler.py

2
sentry_logger/odoo_sentry_handler.py

@ -29,4 +29,6 @@ class OdooSentryHandler(SentryHandler, object):
def can_record(self, record):
if record.exc_info and record.exc_info[0] is except_orm:
return False
if record.module == 'osv' and record.msg == 'Uncaught exception':
return False
return super(OdooSentryHandler, self).can_record(record)
Loading…
Cancel
Save