Added index error exception handling.

master
Brandon Taylor 2013-05-03 08:54:02 -04:00
parent 52b9dc693d
commit a49bb81e1b
1 changed files with 5 additions and 2 deletions

View File

@ -6,8 +6,11 @@ def get_version():
version = '{0}.{1}'.format(VERSION[0], VERSION[1])
if VERSION[2]:
version = '{0}.{1}'.format(version, VERSION[2])
if VERSION[3]:
version = '{0}.{1}'.format(version, VERSION[3])
try:
if VERSION[3]:
version = '{0}.{1}'.format(version, VERSION[3])
except IndexError:
pass
return version