mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-21 18:27:59 -05:00
[Downloader] Move author key handling to RepoJSONMixin, fix NameError (#3285)
* Update downloader.py * Update json_mixins.py * Update installable.py * changelog pt 1 * changelog pt2 * edit of changelog pt1 * edit of changelog pt 2 (last commit before review) * Kidding, this is the last one before review.
This commit is contained in:
@@ -86,7 +86,6 @@ class Installable(RepoJSONMixin):
|
||||
self.repo_name = self._location.parent.stem
|
||||
self.commit = commit
|
||||
|
||||
self.author: Tuple[str, ...] = ()
|
||||
self.min_bot_version = red_version_info
|
||||
self.max_bot_version = red_version_info
|
||||
self.min_python_version = (3, 5, 1)
|
||||
@@ -171,12 +170,6 @@ class Installable(RepoJSONMixin):
|
||||
else:
|
||||
self._info = info
|
||||
|
||||
try:
|
||||
author = tuple(info.get("author", []))
|
||||
except ValueError:
|
||||
author = ()
|
||||
self.author = author
|
||||
|
||||
try:
|
||||
min_bot_version = VersionInfo.from_str(str(info.get("min_bot_version", __version__)))
|
||||
except ValueError:
|
||||
|
||||
Reference in New Issue
Block a user