params["ocv"] = "1"
try:
hapd0 = hostapd.add_ap(apdev[0], params)
- except Exception, e:
+ except Exception as e:
if "Failed to set hostapd parameter ocv" in str(e):
raise HwsimSkip("OCV not supported")
raise
params["ocv"] = "1"
try:
hapd0 = hostapd.add_ap(apdev[0], params)
- except Exception, e:
+ except Exception as e:
if "Failed to set hostapd parameter ocv" in str(e):
raise HwsimSkip("OCV not supported")
raise