summaryrefslogtreecommitdiff
path: root/buildscripts/blackduck_hub.py
diff options
context:
space:
mode:
Diffstat (limited to 'buildscripts/blackduck_hub.py')
-rw-r--r--buildscripts/blackduck_hub.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/buildscripts/blackduck_hub.py b/buildscripts/blackduck_hub.py
index 700834c6ec3..bdab210a43a 100644
--- a/buildscripts/blackduck_hub.py
+++ b/buildscripts/blackduck_hub.py
@@ -338,11 +338,16 @@ class VersionInfo:
# yaml-cpp has this problem where Black Duck sourced the wrong version information
self.ver_str = self.ver_str.replace("-", ".")
+ # If we trimmed the string to nothing, treat it as a beta version
+ if self.ver_str == '':
+ self.production_version = False
+ return
+
# Versions are generally a multi-part integer tuple
self.ver_array = [int(part) for part in self.ver_str.split(".")]
except:
- LOGGER.error("Failed to parse version '%s', exception", ver_str)
+ LOGGER.error("Failed to parse version '%s' as '%s', exception", ver_str, self.ver_str)
raise
def __repr__(self):