Skip to content

Commit 550b0f5

Browse files
committed
Initialize _last_modified with current datetime in JSONConfig constructor
1 parent 6a4d918 commit 550b0f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

config/config/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ class JSONConfig(BaseConfig):
137137
"""
138138
def __init__(self, file_path: str):
139139
self.file_path = file_path
140-
self._last_modified = None
140+
self._last_modified = datetime.now()
141141
super().__init__()
142142

143143
def _load(self) -> 'JSONConfig':

0 commit comments

Comments
 (0)