Skip to content
This repository was archived by the owner on Feb 7, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ logs/currency.log
logs/error-log.txt
logs/info-log.txt
logs/startup-log.txt
config/settings.json
__pycache__
*.bak
venv
1 change: 0 additions & 1 deletion config/settings.json

This file was deleted.

10 changes: 10 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,16 @@ def initial_setup():
except IOError as e:
logger.error(f"Failed to make database file: {e}", module="main/Setup")

# Generating other files
try:
if not os.path.isfile(f"config/settings.json"):
logger.warn(f"[main/Setup] Settings database file was not found in config directory. Creating new database...", module="main/Setup", nolog=True)
with open(f"config/settings.json", 'x', encoding="utf-8") as f:
json.dump({}, f)
f.close()
except IOError as e:
logger.error(f"Failed to make settings database file: {e}", module="main/Setup")

# Generating client log files
try:
if not os.path.isfile("logs/info-log.txt"):
Expand Down