danparizher / Pax-Academia

General purpose utility bot for the Homework Help Discord server
MIT License
13 stars 5 forks source link

error tracebacks are detected as python #265

Closed GabeMillikan closed 9 months ago

GabeMillikan commented 9 months ago

We should be formatting error tracebacks, but not as if they're python code (since they aren't, mostly).

Example of erroneous detection: https://discord.com/channels/238956364729155585/791697255835893821/1144896652986036254 image

The colors are totally off.

Solution: Create a new code_detection/python_tracebacks which detects tracebacks (with a higher fidelity than code_detection/python already does) so that it will be used for formatting.