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
This commit is contained in:
parent
ed0050ba05
commit
184dbf0684
@ -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)))
|
||||
|
Loading…
Reference in New Issue
Block a user