FIX: error during filecheck/import/manual run regarding issue number

This commit is contained in:
evilhero 2016-10-05 19:14:57 -04:00
parent d59e8eaaa7
commit 395d11c42d
1 changed files with 4 additions and 2 deletions

View File

@ -691,8 +691,10 @@ class FileChecker(object):
issue_number = re.sub('XCV', x, split_file[issue_number_position-1]) issue_number = re.sub('XCV', x, split_file[issue_number_position-1])
highest_series_pos -=1 highest_series_pos -=1
issue_number_position -=1 issue_number_position -=1
if issue_number is None:
logger.fdebug('issue verified as : ' + issue_number) logger.fdebug('No issue number present in filename.')
else:
logger.fdebug('issue verified as : ' + issue_number)
issue_volume = None issue_volume = None
if len(volume_found) > 0: if len(volume_found) > 0:
issue_volume = 'v' + str(volume_found['volume']) issue_volume = 'v' + str(volume_found['volume'])