Added index error exception handling.
This commit is contained in:
@@ -6,8 +6,11 @@ def get_version():
|
|||||||
version = '{0}.{1}'.format(VERSION[0], VERSION[1])
|
version = '{0}.{1}'.format(VERSION[0], VERSION[1])
|
||||||
if VERSION[2]:
|
if VERSION[2]:
|
||||||
version = '{0}.{1}'.format(version, VERSION[2])
|
version = '{0}.{1}'.format(version, VERSION[2])
|
||||||
|
try:
|
||||||
if VERSION[3]:
|
if VERSION[3]:
|
||||||
version = '{0}.{1}'.format(version, VERSION[3])
|
version = '{0}.{1}'.format(version, VERSION[3])
|
||||||
|
except IndexError:
|
||||||
|
pass
|
||||||
return version
|
return version
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user