Don't explode if missing the README
This commit is contained in:
parent
b53a3ed3f7
commit
18e22b24ea
@ -164,9 +164,13 @@ def get_app_metadata(app_path):
|
||||
|
||||
chdir(app_path)
|
||||
|
||||
with open(f"{app_path}/README.md", "r") as handle:
|
||||
log.info(f"{app_path}/README.md")
|
||||
contents = handle.read()
|
||||
try:
|
||||
with open(f"{app_path}/README.md", "r") as handle:
|
||||
log.info(f"{app_path}/README.md")
|
||||
contents = handle.read()
|
||||
except Exception:
|
||||
log.info(f"No {app_path}/README.md discovered, moving on")
|
||||
return {}
|
||||
|
||||
try:
|
||||
for match in findall(r"\*\*.*\s\*", contents):
|
||||
|
Reference in New Issue
Block a user