Update files (match_name.py, prog.py, filesio.py)

This commit is contained in:
2022-03-12 00:48:21 +07:00
committed by GitHub
parent 733245cd5b
commit db2343625c
3 changed files with 41 additions and 26 deletions

View File

@@ -19,9 +19,10 @@ class FilesIO:
def get_data(self):
try:
with open(file_name, encoding="utf-8") as f:
with open(self.file_name, encoding="utf-8") as f:
ret_data = load(f)
except FileNotFoundError:
self.create_default_file()
ret_data = self.default_values
# ret_data = self.default_values
return False
return ret_data