[Core] Fixes reload, and prompted reload on cog update (#2226)

Fix something missed when QAing #2207
This commit is contained in:
Michael H 2018-10-11 16:23:04 -04:00 committed by Toby Harradine
parent a64db76b4d
commit 4357fe1ba9

View File

@ -197,14 +197,14 @@ class CoreLogic:
async def _reload(
self, cog_names: Sequence[str]
) -> Tuple[List[str], List[str], List[str], List[str]]:
) -> Tuple[List[str], List[str], List[str], List[str], List[Tuple[str, str]]]:
await self._unload(cog_names)
loaded, load_failed, not_found, already_loaded, load_failed_with_reason = await self._load(
cog_names
)
return loaded, load_failed, not_found, already_loaded
return loaded, load_failed, not_found, already_loaded, load_failed_with_reason
async def _name(self, name: Optional[str] = None) -> str:
"""