replace must be str

This commit is contained in:
Matthias 2021-12-29 03:02:43 +01:00
parent 2ec41b02f8
commit a745aa500e
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076

View File

@ -424,7 +424,7 @@ def extract_serial_numbers(serials, expected_quantity, next_number: int):
# fill in the next serial number into the serial
if '~' in serials:
serials = serials.replace('~', next_number)
serials = serials.replace('~', str(next_number))
groups = re.split("[\s,]+", serials)