aboutsummaryrefslogtreecommitdiff
path: root/tools/EventClients/lib
diff options
context:
space:
mode:
authorRechi <Rechi@users.noreply.github.com>2017-11-23 09:11:02 +0100
committerRechi <Rechi@users.noreply.github.com>2017-11-23 09:11:02 +0100
commite6ad8c9d98801ea276d7a3dced6383200701cc58 (patch)
tree5d89ff70f04275462f8174b10b253730376e98cc /tools/EventClients/lib
parent0a70fe9893dac8654c648f87272e7588297bc71d (diff)
[EventClients][python] except syntax change
Diffstat (limited to 'tools/EventClients/lib')
-rw-r--r--tools/EventClients/lib/python/bt/hid.py2
-rwxr-xr-xtools/EventClients/lib/python/ps3/sixwatch.py2
-rw-r--r--tools/EventClients/lib/python/zeroconf.py2
3 files changed, 3 insertions, 3 deletions
diff --git a/tools/EventClients/lib/python/bt/hid.py b/tools/EventClients/lib/python/bt/hid.py
index 7c65e100f9..c065054805 100644
--- a/tools/EventClients/lib/python/bt/hid.py
+++ b/tools/EventClients/lib/python/bt/hid.py
@@ -55,7 +55,7 @@ class HID:
print("Accepted Interrupt connection from %s" % self.iaddress[0])
self.connected = True
return True
- except Exception, e:
+ except Exception as e:
self.connected = False
return False
diff --git a/tools/EventClients/lib/python/ps3/sixwatch.py b/tools/EventClients/lib/python/ps3/sixwatch.py
index af03a83af1..f913c00cef 100755
--- a/tools/EventClients/lib/python/ps3/sixwatch.py
+++ b/tools/EventClients/lib/python/ps3/sixwatch.py
@@ -20,7 +20,7 @@ def main(mac):
print("Detected sixaxis connected by usb")
try:
sixpair.set_pair_filename(device.attributes['busnum'], device.attributes['devnum'], mac)
- except Exception, e:
+ except Exception as e:
print("Failed to check pairing of sixaxis: " + str(e))
pass
diff --git a/tools/EventClients/lib/python/zeroconf.py b/tools/EventClients/lib/python/zeroconf.py
index 5946a4e885..7f78aca1e4 100644
--- a/tools/EventClients/lib/python/zeroconf.py
+++ b/tools/EventClients/lib/python/zeroconf.py
@@ -29,7 +29,7 @@ try:
import dbus, gobject, avahi
from dbus import DBusException
from dbus.mainloop.glib import DBusGMainLoop
-except Exception, e:
+except Exception as e:
print("Zeroconf support disabled. To enable, install the following Python modules:")
print(" dbus, gobject, avahi")
pass