Minor just in case update

This commit is contained in:
Miroslav Stampar
2018-06-20 13:06:56 +02:00
parent 8f4488d608
commit 2b55ae3e2a
3 changed files with 4 additions and 4 deletions

View File

@@ -1031,7 +1031,7 @@ def readInput(message, default=None, checkBatch=True, boolean=False):
logger.debug(debugMsg)
if retVal is None:
if checkBatch and conf.get("batch"):
if checkBatch and conf.get("batch") or conf.get("api"):
if isListLike(default):
options = ','.join(getUnicode(opt, UNICODE_ENCODING) for opt in default)
elif default: