Prevent error when no file has been detected
Script raised an unhandled exception: local variable 'fmt_str' referenced before assignment Traceback (most recent call last): File "/volume1/@appstore/comictagger/comictaggerlib/options.py", line 233, in launch_script script.main() File "/volume1/@appstore/comictagger/scripts/move2folder.py", line 90, in main print >> sys.stderr, fmt_str.format("") UnboundLocalError: local variable 'fmt_str' referenced before assignment
This commit is contained in:
parent
184dbf0684
commit
08c402149b
@ -76,6 +76,7 @@ def main():
|
||||
print "Reading in all comics..."
|
||||
comic_list = []
|
||||
max_name_len = 2
|
||||
fmt_str = ""
|
||||
for filename in filelist:
|
||||
ca = ComicArchive(filename, settings.rar_exe_path, ComicTaggerSettings.getGraphic('nocover.png'))
|
||||
if ca.seemsToBeAComicArchive() and ca.hasMetadata(style):
|
||||
|
Loading…
Reference in New Issue
Block a user