mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-04 22:40:29 +03:00
metadata: don't crash if metadata includes blank Categories list
If someone includes just 'Categories:', it shouldn't crash.
This commit is contained in:
parent
baeae862ad
commit
7d4176dd50
1 changed files with 2 additions and 0 deletions
|
|
@ -815,6 +815,8 @@ def post_metadata_parse(app):
|
|||
|
||||
if isinstance(app.Categories, str):
|
||||
app.Categories = [app.Categories]
|
||||
elif app.Categories is None:
|
||||
app.Categories = ['None']
|
||||
else:
|
||||
app.Categories = [str(i) for i in app.Categories]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue