diff options
Diffstat (limited to 'tools/lib/pomfile.py')
-rw-r--r-- | tools/lib/pomfile.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/lib/pomfile.py b/tools/lib/pomfile.py index 35dfd5a3..88bfa90e 100644 --- a/tools/lib/pomfile.py +++ b/tools/lib/pomfile.py @@ -34,7 +34,8 @@ class PomFile: # /project/dependencies/dependency[groupId=org.opendaylight.netconf]/version # value: value to set def setXmlValue(self, valuePath, value, replaceMultiple=False) -> bool: - + if value is None: + return False found=False pathToFind = XPath(valuePath) pattern = re.compile('<([^>^\ ^?^!]+)') |