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

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

View File

@ -84,9 +84,7 @@ WARNING! Don't use `sudo` for the rest PlatformIO commands.
fg="yellow",
err=True)
raise exception.ReturnErrorCode(1)
else:
raise exception.UpgradeError("\n".join(
[str(cmd), r['out'], r['err']]))
raise exception.UpgradeError("\n".join([str(cmd), r['out'], r['err']]))
return True