From 499b312e36b464eb4f23cfd4e1b3517330fe2360 Mon Sep 17 00:00:00 2001 From: clinton-hall Date: Mon, 11 Feb 2013 02:50:21 -0800 Subject: [PATCH] fixed indent and bracket --- TorrentToMedia.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/TorrentToMedia.py b/TorrentToMedia.py index 6947649a..2a29e450 100755 --- a/TorrentToMedia.py +++ b/TorrentToMedia.py @@ -164,11 +164,11 @@ elif packed == 1: ## unpack ## Create destination folder if not os.path.exists(destination): - try: - os.makedirs(destination) - except Exception, e: - print("ERROR: Not possible to create destination folder: %s", e) - return + try: + os.makedirs(destination) + except Exception, e: + print("ERROR: Not possible to create destination folder: %s", e) + return print("INFO: Extracting to %s", destination) @@ -208,7 +208,7 @@ for dirpath, dirnames, filenames in os.walk(destination): #flatten out the direc continue #no need to try and move files in the root destination directory. for filename in filenames: try: - shutil.move(os.path.join(dirpath, filename), destination)) + shutil.move(os.path.join(dirpath, filename), destination) except OSError: print ("INFO: Could not flatten %s ", os.path.join(dirpath, filename)) removeEmptyFolders(destination) #cleanup empty directories.