Skip to content

Commit

Permalink
Formating
Browse files Browse the repository at this point in the history
  • Loading branch information
raidensakura committed Dec 26, 2023
1 parent cae3baf commit 6c042d4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -1773,7 +1773,7 @@ async def before_autoupdate(self):
logger.warning("Autoupdates disabled.")
self.autoupdate.cancel()
return

@tasks.loop(hours=1, reconnect=False)
async def log_expiry(self):
log_expire_after = self.config.get("log_expiration")
Expand Down
2 changes: 1 addition & 1 deletion core/migrations.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ async def _convert_legacy_block_list(

for k, v in blocklist_dict.items():
# handle new block format
if type(v) is dict:
if isinstance(v, dict):
block = _convert_legacy_dict_block_format(k, v, block_type=block_type)
if block is None:
logger.debug("skipping expired block entry")
Expand Down

0 comments on commit 6c042d4

Please sign in to comment.