Sometimes dev.getValueText() returns None from a device, this would cause an exception in parseSerialNumber and the script will fail. Not sure if it can actually return a string "None", if not then the 2nd part of the "if" expression could be removed.
Sometimes dev.getValueText() returns None from a device, this would cause an exception in parseSerialNumber and the script will fail. Not sure if it can actually return a string "None", if not then the 2nd part of the "if" expression could be removed.