Catching Throwable instead of IOException in an attempt to catch unknown "type mismatch error" on windows8

This commit is contained in:
Federico Fissore 2013-09-11 12:02:08 +02:00
parent 3a4695fd09
commit 5032e630fe
2 changed files with 2 additions and 2 deletions

View File

@ -232,7 +232,7 @@ public class Platform extends processing.app.Platform {
CommandLine toDevicePath = CommandLine.parse("/usr/sbin/system_profiler SPUSBDataType");
executor.execute(toDevicePath);
return new String(baos.toByteArray());
} catch (IOException e) {
} catch (Throwable e) {
return super.preListAllCandidateDevices();
}
}

View File

@ -345,7 +345,7 @@ public class Platform extends processing.app.Platform {
CommandLine toDevicePath = CommandLine.parse(listComPorts);
executor.execute(toDevicePath);
return new String(baos.toByteArray());
} catch (IOException e) {
} catch (Throwable e) {
return super.preListAllCandidateDevices();
}
}