mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-07-14 17:22:53 -07:00
add exception on logging close #83
This commit is contained in:
parent
b363473463
commit
2950caad33
9 changed files with 50 additions and 63 deletions
|
@ -101,8 +101,8 @@ def Transcode_directory(dirName):
|
|||
result = 1 # set result to failed in case call fails.
|
||||
try:
|
||||
result = call(command)
|
||||
except e:
|
||||
Logger.error("Transcoding of video %s failed due to: ", filePath, str(e))
|
||||
except:
|
||||
Logger.exception("Transcoding of video %s has failed", filePath)
|
||||
if result == 0:
|
||||
Logger.info("Transcoding of video %s to %s succeded", filePath, newfilePath)
|
||||
if duplicate == 0: # we get rid of the original file
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue