Skip to content

Commit

Permalink
Print error reasons
Browse files Browse the repository at this point in the history
  • Loading branch information
dnzbk committed Mar 11, 2024
1 parent 4cbe49d commit c1af265
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions NotifyPlex.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)


Expand Down Expand Up @@ -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']
Expand Down

0 comments on commit c1af265

Please sign in to comment.