Added index error exception handling.
This commit is contained in:
1 parent
52b9dc693d
commit
a49bb81e1b
1 file changed
+3
@@ -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])
|
||||
try:
|
||||
if VERSION[3]:
|
||||
version = '{0}.{1}'.format(version, VERSION[3])
|
||||
except IndexError:
|
||||
pass
|
||||
return version
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user