Don't crash on invalid categories.
This commit is contained in:
parent
441c8b3779
commit
40dfa3f593
|
@ -54,7 +54,7 @@ def get_metadata(overview_contents):
|
||||||
# Extracts extension categories
|
# Extracts extension categories
|
||||||
match = re.search(
|
match = re.search(
|
||||||
"""Attribute name="category">(.+?)</Attribute>""", overview_contents)
|
"""Attribute name="category">(.+?)</Attribute>""", overview_contents)
|
||||||
categories = match.group(1).split(",") if match else None
|
categories = match.group(1).split(",") if match else []
|
||||||
|
|
||||||
# Extracts the number of downloads
|
# Extracts the number of downloads
|
||||||
match = re.search(
|
match = re.search(
|
||||||
|
|
Loading…
Reference in New Issue