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:
|
except psycopg2.IntegrityError as e:
|
||||||
if self.config['debug']:
|
if self.config['debug']:
|
||||||
self.logger.out('Failed to add record due to {}: {}'.format(e, name), state='d', prefix='dns-aggregator')
|
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:
|
if changed:
|
||||||
# Increase SOA serial
|
# Increase SOA serial
|
||||||
|
|
Loading…
Reference in New Issue