Skip to content

Commit c88ede7

Browse files
committed
fix my typo / bugs
1 parent 2cf409a commit c88ede7

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

musicbot/constructs.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,9 @@ def last_np_msg(self, value: Optional[discord.Message]) -> None:
158158
self._last_np_ch_id = value.channel.id
159159
else:
160160
self._last_np_ch_id = 0
161-
bot.create_task(self.save_guild_options_file(), name="MB_SaveGuildOptions")
161+
self._bot.create_task(
162+
self.save_guild_options_file(), name="MB_SaveGuildOptions"
163+
)
162164

163165
@property
164166
def last_np_channel(self) -> Optional[discord.abc.Messageable]:

run.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,8 +257,7 @@ def check_updates(cls) -> List[Dict[str, Any]]:
257257
)
258258
try:
259259
if isinstance(updata, bytes):
260-
updata = update.decode(errors="ignore")
261-
pip_data = json.loads(updata)
260+
pip_data = json.loads(updata.decode(errors="ignore"))
262261
ilist = pip_data.get("install", [])
263262
if not isinstance(ilist, list):
264263
return []

0 commit comments

Comments
 (0)