From d96fae520d3913ea0938ff749c95f1ac97165911 Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Thu, 1 Dec 2011 18:48:20 +0000 Subject: Fix #1976 : Trailing newlines in move_storage --- deluge/core/torrent.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/deluge/core/torrent.py b/deluge/core/torrent.py index 6764f0887..4712a1c5c 100644 --- a/deluge/core/torrent.py +++ b/deluge/core/torrent.py @@ -840,6 +840,8 @@ class Torrent(object): # String is already unicode dest_u = dest + dest_u = sanitize_filepath(dest_u) + if not os.path.exists(dest_u): try: # Try to make the destination path if it doesn't exist -- cgit