minor "patch"

This commit is contained in:
Miroslav Stampar 2011-12-26 14:08:25 +00:00
parent c20546dcaa
commit 366e86c560

View File

@ -14,6 +14,7 @@ import httplib
import inspect import inspect
import logging import logging
import ntpath import ntpath
import optparse
import os import os
import pickle import pickle
import posixpath import posixpath
@ -35,6 +36,7 @@ from ConfigParser import RawConfigParser
from StringIO import StringIO from StringIO import StringIO
from difflib import SequenceMatcher from difflib import SequenceMatcher
from math import sqrt from math import sqrt
from optparse import OptionValueError
from subprocess import PIPE from subprocess import PIPE
from subprocess import Popen as execute from subprocess import Popen as execute
from tempfile import NamedTemporaryFile from tempfile import NamedTemporaryFile
@ -2940,7 +2942,10 @@ def expandMnemonics(mnemonics, parser, args):
logger.debug(debugMsg) logger.debug(debugMsg)
if found: if found:
try:
value = found.convert_value(found, value) value = found.convert_value(found, value)
except OptionValueError:
value = None
if value is not None: if value is not None:
setattr(args, found.dest, value) setattr(args, found.dest, value)