Skip to content

Update to Freezeyt 2.0.0 & clean up code#815

Open
encukou wants to merge 1 commit into
PyLadiesCZ:masterfrom
encukou:freezeyt-2
Open

Update to Freezeyt 2.0.0 & clean up code#815
encukou wants to merge 1 commit into
PyLadiesCZ:masterfrom
encukou:freezeyt-2

Conversation

@encukou

@encukou encukou commented Jul 23, 2026

Copy link
Copy Markdown
Member

We've just released a new version of Freezeyt, which fixes some issues I found when I tried to make pyladies.cz code a bit nicer. (pyladies.cz is Freezeyt's main user today.)

DO these changes make sense?


  • Serve "real" HTTP redirects when running as a dynamic site. (The frozen version uses existing meta redirects.)
    • Use the debug setting PROPAGATE_EXCEPTIONS rather than TRAP_HTTP_EXCEPTIONS, so that Flask doesn't turn redirects to errors.
  • Pages where the freezer doesn't follow links are handled with a 'Freezeyt-URL-Finder' header, rather than a custom function
  • Remove error for Python 2 (the app uses f-strings, so Python 2 will fail with SyntaxError before it gets to the raise)

- Serve "real" HTTP redirects when running as a dynamic site.
  (The frozen version uses existing meta redirects.)
  - Use the debug setting `PROPAGATE_EXCEPTIONS` rather than
    `TRAP_HTTP_EXCEPTIONS`, so that Flask doesn't turn
    redirects to errors.
- Pages where the freezer doesn't follow links are handled
  with a 'Freezeyt-URL-Finder' header, rather than a custom function
- Remove error for Python 2 (the app uses f-strings, so Python 2
  will fail with SyntaxError before it gets to the `raise`)
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.

1 participant