Subtle (sneaky) bug removed (related to #4051) - False or '' results with ''

This commit is contained in:
Miroslav Stampar
2019-12-27 15:37:02 +01:00
parent bcb9482724
commit 4c5cb9e0d4
2 changed files with 4 additions and 2 deletions

View File

@@ -1123,8 +1123,10 @@ def readInput(message, default=None, checkBatch=True, boolean=False):
if boolean:
retVal = retVal.strip().upper() == 'Y'
else:
retVal = retVal or ""
return retVal or ""
return retVal
def setTechnique(technique):
"""