Kaydet (Commit) 1b64d30f authored tarafından Fatih Aşıcı's avatar Fatih Aşıcı

make sure whether the SecondOutput tag exists

üst 89351406
......@@ -195,11 +195,12 @@ def getDeviceInfo(busId):
modes[name] = mode
outputTag = activeConfigTag.getTag("SecondOutput")
name = outputTag.firstChild().data()
activeOutputs.append(name)
mode = outputTag.getAttribute("mode")
if mode:
modes[name] = mode
if outputTag:
name = outputTag.firstChild().data()
activeOutputs.append(name)
mode = outputTag.getAttribute("mode")
if mode:
modes[name] = mode
device.desktop_setup = activeConfigTag.getTagData("DesktopSetup")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment