From 184dbf068496ec57e1c7d3dd4b54338352f571cc Mon Sep 17 00:00:00 2001 From: Alban Seurat Date: Sat, 21 Mar 2015 14:17:05 +0100 Subject: [PATCH] Prevent error when running the script Script raised an unhandled exception: coercing to Unicode: need string or buffer, NoneType found Traceback (most recent call last): File "/root/comictagger/comictaggerlib/options.py", line 233, in launch_script script.main() File "scripts/move2folder.py", line 80, in main ca = ComicArchive(filename, settings.rar_exe_path) File "/root/comictagger/comicapi/comicarchive.py", line 648, in __init__ with open(fname, 'rb') as fd: TypeError: coercing to Unicode: need string or buffer, NoneType found --- scripts/move2folder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/move2folder.py b/scripts/move2folder.py index cfc178f..c056c45 100755 --- a/scripts/move2folder.py +++ b/scripts/move2folder.py @@ -77,7 +77,7 @@ def main(): comic_list = [] max_name_len = 2 for filename in filelist: - ca = ComicArchive(filename, settings.rar_exe_path) + ca = ComicArchive(filename, settings.rar_exe_path, ComicTaggerSettings.getGraphic('nocover.png')) if ca.seemsToBeAComicArchive() and ca.hasMetadata(style): comic_list.append((filename, ca.readMetadata(style)))