Do not traceback if bundle version is not integer.
This commit is contained in:
parent
ec6fc9bfa9
commit
d4ea1f8101
@ -142,7 +142,11 @@ class Bundle:
|
||||
self._icon = cp.get(section, 'icon')
|
||||
|
||||
if cp.has_option(section, 'activity_version'):
|
||||
self._activity_version = int(cp.get(section, 'activity_version'))
|
||||
version = cp.get(section, 'activity_version')
|
||||
try:
|
||||
self._activity_version = int(version)
|
||||
except ValueError:
|
||||
self._valid = False
|
||||
|
||||
def _parse_linfo(self, linfo_file):
|
||||
cp = ConfigParser()
|
||||
|
Loading…
Reference in New Issue
Block a user