simonw / til

Today I Learned
https://til.simonwillison.net
Apache License 2.0
1.02k stars 81 forks source link

500 error #19

Closed simonw closed 3 years ago

simonw commented 3 years ago

Caused by 22cbcddb61f0a80647e2032d3e4e706a382400b7 perhaps?

image

simonw commented 3 years ago

Logs say: Unable to import module 'now__handler__python': No module named 'datasette_render_markdown'

simonw commented 3 years ago

I'm going to add a datasette --get grep soundness check ala https://github.com/simonw/til/blob/main/github-actions/grep-tests.md

simonw commented 3 years ago

This broke because it attempted to download the previous database and couldn't. So I need this line to fail silently: https://github.com/simonw/til/blob/8fc2f462b86c7f49fbfb33eb70c4d12d0178705d/.github/workflows/build.yml#L32-L33

simonw commented 3 years ago

curl --fail should do it. I'll add continue-on-error: true so it doesn't fail and stop the test if the file couldn't be downloaded.

simonw commented 3 years ago

That fixed it.