Fixing error in starting playing songs that the Player lost reference to the current playing song

This commit is contained in:
Rafael Vargas
2023-01-24 19:42:57 -03:00
parent 7310eda1a1
commit 5cdc4e9a53
4 changed files with 7 additions and 4 deletions

View File

@@ -65,6 +65,7 @@ class ProcessManager(Singleton):
def getRunningPlayerInfo(self, guild: Guild) -> ProcessInfo:
"""Return the process info for the guild, if not, return None"""
if guild.id not in self.__playersProcess.keys():
print('Process Info not found')
return None
return self.__playersProcess[guild.id]