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)
|
chdir(app_path)
|
||||||
|
|
||||||
with open(f"{app_path}/README.md", "r") as handle:
|
try:
|
||||||
log.info(f"{app_path}/README.md")
|
with open(f"{app_path}/README.md", "r") as handle:
|
||||||
contents = handle.read()
|
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:
|
try:
|
||||||
for match in findall(r"\*\*.*\s\*", contents):
|
for match in findall(r"\*\*.*\s\*", contents):
|
||||||
|
Reference in New Issue
Block a user