From 91fb9493cc81dcce01db51cf118e375ec81c237b Mon Sep 17 00:00:00 2001 From: nmemmert <67961292+nmemmert@users.noreply.github.com> Date: Fri, 7 Nov 2025 10:34:30 -0500 Subject: [PATCH] Fix arrow function syntax in catch handler --- pdf_renamer.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pdf_renamer.py b/pdf_renamer.py index 9f4fb0f..e5a5876 100644 --- a/pdf_renamer.py +++ b/pdf_renamer.py @@ -1394,9 +1394,11 @@ def jobs(): } console.log('[updateJobs] Update complete!'); }) - .catch(error => { + .catch(function(error) { console.error('[updateJobs] Error updating jobs:', error); - console.error('[updateJobs] Error stack:', error.stack); + if (error.stack) { + console.error('[updateJobs] Error stack:', error.stack); + } }); }