forked from platformio/platformio-core
Fix "Unnecessary "else/elif" after "raise"" by PyLint
This commit is contained in:
1 parent
5a72e3f2a1
commit
237d55208c
4 files changed
+5
-9
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user