Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
bolinocroustibat committed Jun 17, 2024
1 parent fe4c815 commit c65c659
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/matrix_bot/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,12 @@ def __init__(self):
if not self.users_path.exists():
with open(self.users_path, "w") as f:
json.dump({}, f)
print(f"Created empty users file at {self.users_path}")
self.users = {}
else:
with open(self.users_path, "r") as f:
self.users: dict = json.load(f)
print(f"Successfully loaded users from {self.users_path}")

def save_users(self):
with open(self.users_path, "w") as f:
Expand Down

0 comments on commit c65c659

Please sign in to comment.