X-Git-Url: https://git.llucax.com/software/pymin.git/blobdiff_plain/75851ace6d8369155b86d5f76d469b545533919f..031a757fb7b600a9015d018011cc7b135d7c8627:/services/dns/__init__.py diff --git a/services/dns/__init__.py b/services/dns/__init__.py index 862a5b3..6bc45e8 100644 --- a/services/dns/__init__.py +++ b/services/dns/__init__.py @@ -390,7 +390,10 @@ class ZoneHandler: @handler def add(self, name): if name in self.zones: - raise ZoneAlreadyExistsError(name) + if self.zones[name].dele = True: + self.zones[name].dele = False + else: + raise ZoneAlreadyExistsError(name) self.zones[name] = Zone(name) self.zones[name].mod = True self.zones[name].new = True