Fixed index out of range when parsing issue number

This commit is contained in:
Peluko 2019-09-19 20:18:55 +02:00 committed by evilhero
parent 07750a32da
commit 46cd4d9317
1 changed files with 2 additions and 2 deletions

View File

@ -516,9 +516,9 @@ class FileChecker(object):
if all([lastissue_position == (split_file.index(sf) -1), lastissue_label is not None, '#' not in sf, sf != 'p']):
#find it in the original file to see if there's a decimal between.
findst = lastissue_mod_position+1
if findst > len(modfilename):
if findst >= len(modfilename):
findst = len(modfilename) -1
if modfilename[findst] != '.' or modfilename[findst] != '#': #findst != '.' and findst != '#':
if sf.isdigit():
seper_num = False