diff --git a/app/src/processing/app/macosx/Platform.java b/app/src/processing/app/macosx/Platform.java index eb0d5a663..34151db22 100644 --- a/app/src/processing/app/macosx/Platform.java +++ b/app/src/processing/app/macosx/Platform.java @@ -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(); } } diff --git a/app/src/processing/app/windows/Platform.java b/app/src/processing/app/windows/Platform.java index 0c546d225..e340da417 100644 --- a/app/src/processing/app/windows/Platform.java +++ b/app/src/processing/app/windows/Platform.java @@ -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(); } }