Browse Source

SCVB: Fix issue with coverage and older python versions

pull/1176/head
Pieter Lexis 2 years ago
parent
commit
214c859a1e
No known key found for this signature in database GPG Key ID: B6ED640F21BF69E3
1 changed files with 5 additions and 9 deletions
  1. +5
    -9
      octodns/record/svcb.py

+ 5
- 9
octodns/record/svcb.py View File

@ -159,15 +159,11 @@ class SvcbValue(EqualityTupleMixin, dict):
raise RrParseError(f'{paramkey} is specified twice')
if len(paramvalue) != 0:
params[paramkey] = paramvalue[0]
if (
SUPPORTED_PARAMS.get(paramkey, {}).get(
'parse_rdata_text', None
)
is not None
):
params[paramkey] = SUPPORTED_PARAMS[paramkey][
'parse_rdata_text'
](paramvalue[0])
parse_rdata_text = SUPPORTED_PARAMS.get(paramkey, {}).get(
'parse_rdata_text', None
)
if parse_rdata_text is not None:
params[paramkey] = parse_rdata_text(paramvalue[0])
continue
params[paramkey] = None
return {


Loading…
Cancel
Save