Skip to content

Commit a0885b7

Browse files
committed
Do not raise a deprecation warning when loading the satosa.deprecated module
Signed-off-by: Ivan Kanakarakis <[email protected]>
1 parent 0c96266 commit a0885b7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/satosa/deprecated.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,9 @@ class UserIdHashType(Enum):
169169
unspecified = 6
170170

171171
def __getattr__(self, name):
172-
msg = "UserIdHashType is deprecated and will be removed."
173-
_warnings.warn(msg, DeprecationWarning)
172+
if name is not "_value_":
173+
msg = "UserIdHashType is deprecated and will be removed."
174+
_warnings.warn(msg, DeprecationWarning)
174175
return self.__getattribute__(name)
175176

176177
@classmethod

0 commit comments

Comments
 (0)