Skip to content

Commit a956073

Browse files
committed
Fix another issue with updates
1 parent dff4955 commit a956073

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

bot.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1484,7 +1484,7 @@ async def autoupdate(self):
14841484
res = await proc.stdout.read()
14851485
res = res.decode("utf-8").rstrip()
14861486

1487-
if err:
1487+
if err and not res:
14881488
logger.warning(f"Autoupdate failed: {err}")
14891489
self.autoupdate_loop.cancel()
14901490
return

cogs/utility.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1926,7 +1926,7 @@ async def update(self, ctx, *, flag: str = ""):
19261926
res = await proc.stdout.read()
19271927
res = res.decode("utf-8").rstrip()
19281928

1929-
if err:
1929+
if err and not res:
19301930
embed = discord.Embed(
19311931
title="Update failed", description=err, color=self.bot.error_color
19321932
)

0 commit comments

Comments
 (0)