Skip to content

Commit 2b8ec05

Browse files
committed
fix:issue #96
1 parent 67f09f9 commit 2b8ec05

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

core/settings.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ def __new__(cls, *args, **kwargs):
6262
return cls.__instance
6363

6464
def __setattr__(self, key, value):
65+
if not key.startswith('opendal_') and type(value) == str and value.isnumeric():
66+
value = int(value)
6567
self.__dict__[key] = value
6668
with open(env_path, 'w', encoding='utf-8') as f:
6769
for key, value in self.__dict__.items():

0 commit comments

Comments
 (0)