Skip to content

Commit

Permalink
Fix LGTM alerts and import changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ArunSaravananBalachandran committed May 18, 2020
1 parent 5e9c885 commit a7cc834
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
try:
import os
import select
import subprocess
import re
import sys
from sonic_platform_base.chassis_base import ChassisBase
from sonic_platform.sfp import Sfp
from sonic_platform.fan import Fan
Expand Down Expand Up @@ -191,7 +190,7 @@ def get_serial(self):
string: Serial number of chassis
"""
return self._eeprom.serial_str()

def get_sfp(self, index):
"""
Retrieves sfp represented by (1-based) index <index>
Expand Down Expand Up @@ -401,7 +400,7 @@ def get_change_event(self, timeout=0):
self._check_interrupts(port_dict)

return retval, ret_dict
except:
except Exception:
return False, ret_dict
finally:
if self.oir_fd != -1:
Expand All @@ -410,5 +409,3 @@ def get_change_event(self, timeout=0):
self.oir_fd.close()
self.oir_fd = -1
self.epoll = -1

return False, ret_dict

0 comments on commit a7cc834

Please sign in to comment.