logging: show file error reason in log

In case of an error occurs while saving subtitles, the cause for the error should be printed to the log file. Otherwise it becomes difficult to debug it.
pull/942/head
Roberto Santalla 5 years ago committed by GitHub
parent 5dcd835308
commit 635b865b2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -207,7 +207,7 @@ def download_subtitle(path, language, audio_language, hi, forced, providers, pro
path_decoder=force_unicode path_decoder=force_unicode
) )
except Exception as e: except Exception as e:
logging.exception('BAZARR Error saving Subtitles file to disk for this file:' + path) logging.exception('BAZARR Error saving Subtitles file to disk for this file:' + path + ': ' + repr(e))
pass pass
else: else:
saved_any = True saved_any = True

Loading…
Cancel
Save