This commit is contained in:
Шурупов Илья Викторович 2026-01-03 19:54:44 +03:00
parent d8929d3064
commit a4524d7384
5 changed files with 31 additions and 16 deletions

View file

@ -18,10 +18,11 @@ def get_data(name):
data = json.load(file)
return data
except FileNotFoundError:
return f"File {name}.json not found."
print(f"File {name}.json not found.")
return {}
except json.JSONDecodeError:
return f"Error decoding JSON from {name}.json."
print(f"Error decoding JSON from {name}.json.")
return {}
def save_data(data, name):
def remove_available_markets(obj):