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])
|
||||
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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user