Fix a couple of syntax goofs.
[pyassuan.git] / bin / pinentry.py
index 3bc6771f3fc32278dc9edd3a9c494c1c938a3b81..05780fe92972189c3ceac90980d491e6e6a4d849 100755 (executable)
@@ -192,7 +192,7 @@ class PinEntry (_server.AssuanServer):
             fd_path = _os_path.join(path, 'fd', '0')
             try:
                 link = _os.readlink(fd_path)
-            except OSError, e:
+            except OSError as e:
                 self.logger.debug('not our process: {}'.format(e))
                 continue  # permission denied (not one of our processes)
             if link != tty_name: