Handle an additional exception case

This commit is contained in:
Joshua Boniface 2021-06-14 17:15:40 -04:00
parent 08dc756549
commit ef1701b4c8
1 changed files with 3 additions and 0 deletions

View File

@ -480,6 +480,9 @@ class AXFRDaemonInstance(object):
except psycopg2.IntegrityError as e:
if self.config['debug']:
self.logger.out('Failed to add record due to {}: {}'.format(e, name), state='d', prefix='dns-aggregator')
except psycopg2.errors.InFailedSqlTransaction as e:
if self.config['debug']:
self.logger.out('Failed to add record due to {}: {}'.format(e, name), state='d', prefix='dns-aggregator')
if changed:
# Increase SOA serial