From 342d0869685a65e42ccb5807a0b5c1f1b7fa4ee1 Mon Sep 17 00:00:00 2001 From: "Mark W. Eichin" Date: Sat, 2 May 2009 23:46:15 +0000 Subject: add safety net for non-svn users. (really once I pull the duplicate tests out of here there's no reason for this to be runnable anyway...) --- lib/zephyr_tests.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib') 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...""" -- cgit v1.2.3