Skip to content

Commit

Permalink
tryfix-ci
Browse files Browse the repository at this point in the history
  • Loading branch information
c4ffein committed Aug 4, 2024
1 parent d167ca7 commit 57247fa
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-django-postgresql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
sudo systemctl start postgresql.service
pg_isready
sudo -u postgres createdb db
printf "0000\n0000" | sudo -u postgres createuser -s -d -r -w -P runner
printf "0000\n0000" | sudo -u postgres createuser -s -d -r -P runner
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
Expand Down
1 change: 0 additions & 1 deletion helpers/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ def clean_integrity_error(error):
"""Helper to convert an IntegrityError from psycopg2/sqlite3 to a field name string"""
try:
if isinstance(error.__cause__, UniqueViolation):
raise Exception("YOU ARE TESTING POSTGRES")
return error.__cause__.args[0].split(":")[1].split("(")[1].split(")")[0]
if isinstance(error.__cause__, IntegrityError):
return error.__cause__.args[0].split(": ")[1].split(".")[1]
Expand Down

0 comments on commit 57247fa

Please sign in to comment.