Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c4d63f commit 7bcb3ceCopy full SHA for 7bcb3ce
1 file changed
lib/core/common.py
@@ -3278,7 +3278,10 @@ def __init__(self):
3278
if opt.startswith(name):
3279
options[opt] = option
3280
3281
- if name in options:
+ if not options:
3282
+ warnMsg = "mnemonic '%s' can't be resolved" % name
3283
+ logger.warn(warnMsg)
3284
+ elif name in options:
3285
found = name
3286
debugMsg = "mnemonic '%s' resolved to %s). " % (name, found)
3287
logger.debug(debugMsg)
@@ -3288,7 +3291,8 @@ def __init__(self):
3288
3291
warnMsg += "Resolved to shortest of those ('%s')" % found
3289
3292
logger.warn(warnMsg)
3290
3293
- found = options[found]
3294
+ if found:
3295
+ found = options[found]
3296
else:
3297
found = pointer.current[0]
3298
0 commit comments