From a0f9668e8317266acb222fb8b10c131ab96bf902 Mon Sep 17 00:00:00 2001 From: Ross McFarland Date: Sun, 27 Mar 2022 07:05:55 -0700 Subject: [PATCH] Remove extranious None default from get --- octodns/record/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/octodns/record/__init__.py b/octodns/record/__init__.py index 474d48c..6fe3f90 100644 --- a/octodns/record/__init__.py +++ b/octodns/record/__init__.py @@ -90,7 +90,7 @@ class Record(EqualityTupleMixin): def register_type(cls, _class, _type=None): if _type is None: _type = _class._type - existing = cls._CLASSES.get(_type, None) + existing = cls._CLASSES.get(_type) if existing: module = existing.__module__ name = existing.__name__