fixed error in parsing version

This commit is contained in:
saifullah-N
2023-03-19 23:35:13 +05:30
parent 0b2fb6af3e
commit 0517ff33a5

View File

@@ -156,6 +156,7 @@ class Config(object):
def _upgrade(self, config):
version = config['version']
version = version.split('b')[0] # Strip off any "beta" suffix
version = version.split('-')[0]
version = tuple(map(int, version.split('.'))) # Break it into a tuple of integers
if version < (1, 0, 7):