mirror of
https://github.com/gryf/wicd.git
synced 2026-01-04 21:04:15 +01:00
A bunch of small fixes for errors/warnings reported by Pylint.
This commit is contained in:
@@ -500,7 +500,7 @@ class WirelessInterface(Interface, wnettools.BaseWirelessInterface):
|
||||
return 100 * int(strength) // int(max_strength)
|
||||
else:
|
||||
# Prevent a divide by zero error.
|
||||
ap['quality'] = int(strength)
|
||||
strength = int(strength)
|
||||
|
||||
if strength is None:
|
||||
strength = misc.RunRegex(altstrength_pattern, output)
|
||||
|
||||
@@ -293,8 +293,8 @@ class WirelessInterface(Interface, wnettools.BaseWirelessInterface):
|
||||
if not self.scan_iface:
|
||||
try:
|
||||
self.scan_iface = iwscan.WirelessInterface(self.iface)
|
||||
except (iwscan.error, e):
|
||||
print "GetNetworks caught an exception: %s" %s
|
||||
except iwscan.error, e:
|
||||
print "GetNetworks caught an exception: %s" % e
|
||||
return []
|
||||
|
||||
results = self.scan_iface.Scan()
|
||||
|
||||
Reference in New Issue
Block a user