[Core] Fix user output on cog load/reload (#2767)

* [Core] Fix user output on cog load/reload

  - Properly fixes the load/reload exception handling
  - Fixes some i18n use here to not make assumptions about other
  languages pluralization rules.

* Fix some typos

* Address Flame's Feedback

* It's important to save before committing ...

* formatting

* Fix some formats...
This commit is contained in:
Michael H
2019-06-29 12:16:28 -04:00
committed by GitHub
parent 10412c4f51
commit 098540b9e5
2 changed files with 114 additions and 65 deletions

View File

@@ -303,7 +303,7 @@ class RedBase(commands.GroupMixin, commands.bot.BotBase, RPCMixin): # pylint: d
except Exception as e:
self._remove_module_references(lib.__name__)
self._call_module_finalizers(lib, name)
raise errors.CogLoadError(e) from e
raise
else:
self._BotBase__extensions[name] = lib