From: Jakob Schlyter Date: Tue, 23 Jul 2024 12:55:51 +0000 (+0200) Subject: ensure we have a zone origin (#1105) X-Git-Tag: v2.7.0rc1~40 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1532bffd65b533cb7752a4a471be5b173cf2f487;p=thirdparty%2Fdnspython.git ensure we have a zone origin (#1105) --- diff --git a/dns/dnssec.py b/dns/dnssec.py index e49c3b79..6a7b78ea 100644 --- a/dns/dnssec.py +++ b/dns/dnssec.py @@ -1056,6 +1056,9 @@ def sign_zone( else: cm = zone.writer() + if zone.origin is None: + raise ValueError("no zone origin") + with cm as _txn: if add_dnskey: if dnskey_ttl is None: