Changeset 114
Author: Fate
(2010/04/04 12:32) About 2 years ago
Fixed a crash when connman has fake device plugin... thanks to misc.
Author: Fate
(2010/04/04 12:32) About 2 years ago
Fixed a crash when connman has fake device plugin... thanks to misc.
if device["Type"] == "wifi":try:self.device = deviceif device["Type"] == "wifi":self.device = deviceexcept KeyError:passtry:for dpath in self.bus["connman"]["/"]["Manager"]["Devices"]:for dpath in self.bus["connman"]["/"]["Manager"]["Devices"]:device = self.bus["connman"][dpath]["Device"]device = self.bus["connman"][dpath]["Device"]try:self.device = deviceexcept:except KeyError:pass