mirror of
https://github.com/jazzband/django-admin-sortable.git
synced 2026-03-17 06:20:33 +00:00
Added index error exception handling.
This commit is contained in:
parent
52b9dc693d
commit
a49bb81e1b
1 changed files with 5 additions and 2 deletions
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue