Skip to content

Commit ec2c09e

Browse files
committed
fix: Revert changes from viur-framework#1323
Ensure key is a str for every usage
1 parent 1068b97 commit ec2c09e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/viur/core/i18n.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,8 @@ def __init__(
180180
:param public: Flag for public translations, which can be obtained via /json/_translate/get_public.
181181
"""
182182
super().__init__()
183-
184-
self.key = str(key).lower()
183+
key = str(key) # ensure key is a str
184+
self.key = key.lower()
185185
self.defaultText = defaultText or key
186186
self.hint = hint
187187

0 commit comments

Comments
 (0)