fix: pygment crashes (#209)

Dpaste crashes when something else than plain text is stored.
https://user-images.githubusercontent.com/428000/171509933-116ea4d2-105e-4d75-b731-0d2fad1c8fd7.png

!! This is a temporary fix for the problem described above.

This fixes it by downgrading the pygment version.

Note: I also remove mysqlclient as was an accidental commit.
---

Fixes: https://github.com/DarrenOfficial/dpaste/issues/208
Origin: https://github.com/pygments/pygments/issues/2119

Signed-off-by: Darren <git@darrennathanael.com>
This commit is contained in:
Darren 2022-06-02 12:35:20 -05:00 committed by GitHub
parent 51e9172479
commit 0e89d18bc5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -30,8 +30,7 @@ python_requires = >=3.6
install_requires =
# Essential packages
django>=3.2
pygments>=2.11
mysqlclient>=2.1.0
pygments<=2.11.2
django-staticinline>=1.0
django-csp>=3.6
dj_database_url>=0.5.0