Handle an additional exception case
This commit is contained in:
parent
08dc756549
commit
ef1701b4c8
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue