summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rwxr-xr-xlib/zephyr_tests.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/zephyr_tests.py b/lib/zephyr_tests.py
index e44652e..b4134ee 100755
--- a/lib/zephyr_tests.py
+++ b/lib/zephyr_tests.py
@@ -21,7 +21,10 @@ from ctypes import POINTER, c_void_p, c_char_p
from ctypes import Structure, Union, sizeof
__revision__ = "$Id$"
-__version__ = "%s/%s" % (__revision__.split()[3], __revision__.split()[2])
+try:
+ __version__ = "%s/%s" % (__revision__.split()[3], __revision__.split()[2])
+except IndexError:
+ __version__ = "unknown"
def print_line_or_lines(results, indent):
"""short values on same line, multi-line on later ones..."""