[#2953] Fix except variable typo

This commit is contained in:
Calum Lind 2017-01-09 17:55:52 +00:00
parent 48cedf635f
commit 3c1995476d

View File

@ -911,7 +911,7 @@ class Torrent(object):
try:
# Try to make the destination path if it doesn't exist
os.makedirs(dest)
except OSError, e:
except OSError, ex:
log.error("Could not move storage for torrent %s since %s does "
"not exist and could not create the directory: %s",
self.torrent_id, dest, ex)