Skip to content

Open (cat) on missing file causes str vs bytes issue #510

Description

@jonasbardino

It appears cat on missing file can cause str vs byte issues like:

2026-03-06 11:54:34,649 ERROR file formatting failed: can't concat str to bytes
2026-03-06 11:54:34,649 ERROR original 'cat' response was: [{'object_type': 'start', 'headers': '[ ... ]'}, {'object_type': 'title', 'text': 'cat', 'meta': '', 'style': '{ ... }', 'script': '{ ... }', 'backend': 'cat', 'base_menu': '[ ... ]', 'user_settings': '{ ... }', 'user_profile': '{ ... }', 'user_menu': '[ ... ]'}, {'object_type': 'header', 'text': 'cat'}, {'object_type': 'file_not_found', 'name': 'path/to/missing/file.txt'}, {'object_type': 'timing_info', 'text': 'done in 1.250s'}, {'object_type': 'wsgi', 'environ': {...}}]

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Fields

    No fields configured for Bug.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions