Skip to content

Long exception message overflows the red st.exception box #9816

Closed
@jrieke

Description

Checklist

  • I have searched the existing issues for similar issues.
  • I added a very descriptive title to this issue.
  • I have provided sufficient information below to help reproduce this issue.

Summary

If you have a long exception message, it overflows the red box below:
CleanShot 2024-11-08 at 14 44 15

Reproducible Code Example

import streamlit as st

raise RuntimeError("jsldfklasjlkdfklsdfjklkjlsdfsdfsdfsdfsdfsdfsdfsdfklsdfkljsdklfjskdjlfkjlsdfkl")

Steps To Reproduce

Run the app above. See playground here.

Expected Behavior

Text breaks to next line, similar to if you use e.g. st.warning with a long string:
CleanShot 2024-11-08 at 14 45 36

Current Behavior

See screenshot above.

Is this a regression?

  • Yes, this used to work in a previous version.

Debug info

  • Streamlit version: 1.40
  • Python version:
  • Operating System:
  • Browser:

Additional Information

No response

Metadata

Assignees

No one assigned

    Labels

    status:confirmedBug has been confirmed by the Streamlit teamtype:bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions