Skip to content

Commit 5fb29a1

Browse files
authored
Merge branch 'main' into test/bar-chart
2 parents f03b10d + aeea306 commit 5fb29a1

File tree

6 files changed

+1158
-1572
lines changed

6 files changed

+1158
-1572
lines changed

backend/apps/owasp/models/common.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,11 @@ def get_metadata(self):
179179
get_repository_file_content(self.index_md_url),
180180
re.DOTALL,
181181
)
182-
return yaml.safe_load(content) if (content := yaml_content.group(1)) else {}
182+
return (
183+
yaml.safe_load(content)
184+
if yaml_content and (content := yaml_content.group(1))
185+
else {}
186+
)
183187
except (AttributeError, yaml.scanner.ScannerError):
184188
logger.exception(
185189
"Unable to parse entity metadata",

0 commit comments

Comments
 (0)