mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-07 08:14:16 +02:00
fix: snaps read index error
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
__version__ = '0.4.1'
|
||||
__version__ = '0.4.2'
|
||||
__app_name__ = 'fpakman'
|
||||
|
||||
import os
|
||||
|
||||
@@ -39,8 +39,8 @@ def app_str_to_json(app: str) -> dict:
|
||||
'version': app_data[1],
|
||||
'rev': app_data[2],
|
||||
'tracking': app_data[3],
|
||||
'publisher': app_data[4],
|
||||
'notes': app_data[5]
|
||||
'publisher': app_data[4] if len(app_data) >= 5 else None,
|
||||
'notes': app_data[5] if len(app_data) >= 6 else None
|
||||
}
|
||||
|
||||
app_json.update(get_info(app_json['name'], ('summary', 'type', 'description')))
|
||||
|
||||
Reference in New Issue
Block a user