Skip to content

Commit f3af999

Browse files
committed
pylint: fix some issues before making it fatal
Change-Id: I337c5f82cae2644910cd106f5aa9f6e390f39bf3
1 parent 1f1ecb4 commit f3af999

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

arista/drivers/scd/watchdog.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,15 @@ def write(self):
3333
return
3434
try:
3535
self.localStorage.writeObj(self)
36-
except Exception:
36+
except (IOError, OSError):
3737
logging.error("failed to write watchdog state to cache")
3838

3939
def read(self):
4040
if self.localStorage is None or inSimulation():
4141
return
4242
try:
4343
self.localStorage.readObj(self)
44-
except Exception:
44+
except (IOError, OSError):
4545
logging.error("failed to read watchdog state from cache")
4646

4747
def arm(self, timeout):

arista/platforms/catalina.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
from ..core.hwapi import HwApi
21
from ..core.fixed import FixedSystem
32
from ..core.platform import registerPlatform
43
from ..core.port import PortLayout

arista/utils/sonic_platform/fan_drawer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def get_status_led(self, color=None):
4343
def set_status_led(self, color):
4444
led = self._slot.getLed()
4545
if led is None:
46-
return True
46+
return True
4747
try:
4848
led.setColor(color)
4949
return True

0 commit comments

Comments
 (0)