Fix missing logic to handle empty string from dynamic input
This commit is contained in:
parent
e2b8b51db8
commit
b142ff5bed
@ -148,6 +148,9 @@ class BrickPart(RebrickablePart):
|
|||||||
|
|
||||||
# We need a positive integer
|
# We need a positive integer
|
||||||
try:
|
try:
|
||||||
|
if missing == '':
|
||||||
|
missing = 0
|
||||||
|
|
||||||
missing = int(missing)
|
missing = int(missing)
|
||||||
|
|
||||||
if missing < 0:
|
if missing < 0:
|
||||||
|
Loading…
Reference in New Issue
Block a user