Changeset 2684

Show
Ignore:
Timestamp:
03/27/17 03:44:56 (7 years ago)
Author:
jwoithe
Message:

ffadowindow: catch exceptions in a way which is compatible with both python2 and python3.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/libffado/support/mixer-qt4/ffado/ffadowindow.py

    r2680 r2684  
    116116        try: 
    117117            self.setupDeviceManager() 
    118         except dbus.DBusException, ex: 
     118        except dbus.DBusException as ex: 
    119119            log.error("Could not communicate with the FFADO DBus service...") 
    120120            if not hasattr(self,"retry"): 
     
    129129        try: 
    130130            self.setupDeviceManager() 
    131         except dbus.DBusException, ex: 
     131        except dbus.DBusException as ex: 
    132132            if hasattr(self, "retry"): 
    133133                self.retry.setEnabled(False)