diff options
Diffstat (limited to 'lib/zephyr_tests.py')
-rwxr-xr-x | lib/zephyr_tests.py | 5 |
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...""" |