-
Notifications
You must be signed in to change notification settings - Fork 88
Open
Labels
Description
FIXME does nice syntax highlighting for tracebacks, but should be made configurable
AutoPR/autopr/services/action_service.py
Lines 135 to 146 in 1d818f4
| except Exception: | |
| self.log.exception(f"Failed to run action {action_id}") | |
| await publish_service.publish_code_block( | |
| heading="Error", | |
| code=traceback.format_exc(), | |
| language="python", # FIXME | |
| # does nice syntax highlighting for tracebacks, but should be made configurable | |
| ) | |
| await publish_service.end_section(f"❌ Failed {action_id}") | |
| raise | |
| return outputs |
When resolving this TODO, you can start by researching how the syntax highlighting for tracebacks is currently implemented. Once you understand the code, you can make it configurable by adding a configuration option or parameter that allows users to customize the syntax highlighting.