From c1af265c46bec42f940d9776e4e2ac889bb4ac1a Mon Sep 17 00:00:00 2001 From: dnzbk Date: Mon, 11 Mar 2024 10:57:28 +0300 Subject: [PATCH] Print error reasons --- NotifyPlex.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/NotifyPlex.py b/NotifyPlex.py index f5d5cdf..8cd3ba2 100755 --- a/NotifyPlex.py +++ b/NotifyPlex.py @@ -162,7 +162,7 @@ def refresh_auto(movie_cats, tv_cats): else: print('[ERROR] NOTIFYPLEX: Failed auto-detecting Plex sections. ' 'Check Network Connection, Plex server settings, Auth-Token and section numbers.') - print('[ERROR] NOTIFYPLEX: %s' % e) + print('[ERROR] NOTIFYPLEX: %s' % e.reason) sys.exit(POSTPROCESS_ERROR) @@ -194,7 +194,7 @@ def refresh_sections(plex_sections, auth_token): else: print('[ERROR] NOTIFYPLEX: Failed updating section %s. ' + 'Check Network Connection, Plex server settings, Auth-Token and section numbers.' % section_id) - print('[ERROR] NOTIFYPLEX: %s' % e) + print('[ERROR] NOTIFYPLEX: %s' % e.reason) sys.exit(POSTPROCESS_ERROR) NZBGetVersion = os.environ['NZBOP_VERSION']