Fix "Unnecessary "else/elif" after "raise"" by PyLint

This commit is contained in:
Ivan Kravets committed 2019-03-07 12:35:34 +02:00
1 parent 5a72e3f2a1
commit 237d55208c
4 files changed
+5 -9

No files matched your search

+1 -2
View File
@@ -277,8 +277,7 @@ class LibraryManager(BasePkgManager):
if not lib_info:
if list(filters) == ["name"]:
raise exception.LibNotFound(filters['name'])
else:
raise exception.LibNotFound(str(filters))
raise exception.LibNotFound(str(filters))
if not silent:
click.echo("Found: %s" % click.style(
"https://platformio.org/lib/show/{id}/{name}".format(
+1 -1
View File
@@ -481,7 +481,7 @@ class PkgInstallerMixin(object):
if versions is None:
util.internet_on(raise_exception=True)
raise exception.UnknownPackage(name)
elif not pkgdata:
if not pkgdata:
raise exception.UndefinedPackageVersion(requirements or "latest",
util.get_systype())
return pkg_dir