[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:
jack1142
2020-01-08 19:08:55 +01:00
committed by Michael H
parent f5949f2664
commit af859aa755
5 changed files with 10 additions and 10 deletions

View File

@@ -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: