PyLint fixes

This commit is contained in:
Ivan Kravets
2023-02-02 17:43:38 +02:00
parent 18b6aad369
commit 5073313c33
5 changed files with 9 additions and 7 deletions
+2 -1
View File
@@ -16,6 +16,7 @@ import os
import click
from platformio.exception import PlatformioException
from platformio.project.helpers import get_project_dir
# pylint: disable=too-many-instance-attributes, redefined-builtin
@@ -79,7 +80,7 @@ class DefectItem:
for key, value in DefectItem.SEVERITY_LABELS.items():
if label == value:
return key
raise Exception("Unknown severity label -> %s" % label)
raise PlatformioException("Unknown severity label -> %s" % label)
def as_dict(self):
return {