Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed some banana seeds edge case & error catching #72

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

KhoomeiK
Copy link
Contributor

No description provided.

Comment on lines +326 to +341
missing_mhtml = []
for i, example in enumerate(examples):
if example.mhtml_url is not None:
mhtml_path = get_examples_path() / example.id / "index.mhtml"
if not mhtml_path.exists():
mhtml_str = download_mhtml(example.mhtml_url)
mhtml_path.parent.mkdir(parents=True, exist_ok=False)
with open(mhtml_path, "w") as file:
file.write(mhtml_str)
try:
mhtml_str = download_mhtml(example.mhtml_url)
except ClientError:
missing_mhtml.append(i)
continue
else:
mhtml_path.parent.mkdir(parents=True, exist_ok=False)
with open(mhtml_path, "w") as file:
file.write(mhtml_str)

examples = [e for i, e in enumerate(examples) if i not in missing_mhtml]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should just delete the id missing mhtml or handle it directly. Don't think we need handling for this (and could cause us to misunderstand how many tests we really have)

@awtkns
Copy link
Member

awtkns commented Jul 3, 2024

@KhoomeiK please get this is in or close

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants