Skip to content

Commit

Permalink
Remove unused config
Browse files Browse the repository at this point in the history
  • Loading branch information
greeeen-dev committed Feb 6, 2025
1 parent 883be80 commit 8dc2ff1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cogs/bridge.py
Original file line number Diff line number Diff line change
Expand Up @@ -1157,7 +1157,7 @@ async def restore(self,filename='bridge.json'):
secure_load_success = False
else:
data = jsontools.loads_bytes(data)
if not self.__bot.config['encrypt_backups'] or not secure_load_success:
if not secure_load_success:
with open(filename, "r") as file:
data = json.load(file)

Expand Down
2 changes: 1 addition & 1 deletion unifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ def __init__(self, *args, **kwargs):
self.bridge = None
self.pyversion = sys.version_info
self.__uses_v3 = int(nextcord.__version__.split('.',1)[0]) == 3
self.db = AutoSaveDict({}, encrypt=data['encrypt_backups'])
self.db = AutoSaveDict({}, encrypt=True)
self.db.load_data()
self.__langmgr = langmgr.LanguageManager(self)
self.cooldowns = {}
Expand Down

0 comments on commit 8dc2ff1

Please sign in to comment.