diff --git a/deluge/core/torrent.py b/deluge/core/torrent.py index feef72873..aaa6f7640 100644 --- a/deluge/core/torrent.py +++ b/deluge/core/torrent.py @@ -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)