Skip to content

Commit

Permalink
fix: Removed direct exception throw statement and added it to be logged
Browse files Browse the repository at this point in the history
  • Loading branch information
SaptarshiSarkar12 committed Aug 5, 2023
1 parent 2fab3f3 commit 3c161a4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/main/java/Utils/Environment.java
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,8 @@ else if (OS.isMac()) {
if(!copyYtDlp.copyToTemp()) {
Settings.SET_PREFERENCES.setLastYt_DlpUpdateTime(System.currentTimeMillis());
}
}
catch (IOException e) {
throw new RuntimeException(e);
} catch (IOException e) {
messageBroker.sendMessage("Failed to set the time of last yt-dlp update as preference! " + e.getMessage(), MessageType.ERROR, MessageCategory.LOG);
}
String batchPath;
if (OS.isWindows()) {
Expand Down

0 comments on commit 3c161a4

Please sign in to comment.