Skip to content

Commit 6c042d4

Browse files
committed
Formating
1 parent cae3baf commit 6c042d4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

bot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1773,7 +1773,7 @@ async def before_autoupdate(self):
17731773
logger.warning("Autoupdates disabled.")
17741774
self.autoupdate.cancel()
17751775
return
1776-
1776+
17771777
@tasks.loop(hours=1, reconnect=False)
17781778
async def log_expiry(self):
17791779
log_expire_after = self.config.get("log_expiration")

core/migrations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ async def _convert_legacy_block_list(
8484

8585
for k, v in blocklist_dict.items():
8686
# handle new block format
87-
if type(v) is dict:
87+
if isinstance(v, dict):
8888
block = _convert_legacy_dict_block_format(k, v, block_type=block_type)
8989
if block is None:
9090
logger.debug("skipping expired block entry")

0 commit comments

Comments
 (0)