about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--broadlink/__init__.py2
-rw-r--r--setup.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/broadlink/__init__.py b/broadlink/__init__.py
index 68ad55990752..3fe28a81c920 100644
--- a/broadlink/__init__.py
+++ b/broadlink/__init__.py
@@ -3,7 +3,7 @@
 from datetime import datetime
 try:
     from Crypto.Cipher import AES
-except ImportError, e:
+except ImportError as e:
     import pyaes
 
 import time
diff --git a/setup.py b/setup.py
index 912cd301ac34..ed627fe13b73 100644
--- a/setup.py
+++ b/setup.py
@@ -9,7 +9,7 @@ import warnings
 try:
     import pyaes
     dynamic_requires = ["pyaes==1.6.0"]
-except ImportError, e:
+except ImportError as e:
     dynamic_requires = ['pycrypto==2.6.1']
 
 version = 0.3