Skip to content

Commit

Permalink
Try easy for for psycopg encoding pattern change
Browse files Browse the repository at this point in the history
  • Loading branch information
AlanCoding authored and jessicamack committed Jan 6, 2025
1 parent ec13018 commit e292e84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion awx/main/dispatch/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ def current_notifies(conn):
ns = conn.wait(psycopg.generators.notifies(conn.pgconn))
except psycopg.errors._NO_TRACEBACK as ex:
raise ex.with_traceback(None)
enc = psycopg._encodings.pgconn_encoding(conn.pgconn)
for pgn in ns:
enc = conn.pgconn._encoding

Check warning on line 76 in awx/main/dispatch/__init__.py

View check run for this annotation

Codecov / codecov/patch

awx/main/dispatch/__init__.py#L76

Added line #L76 was not covered by tests
n = psycopg.connection.Notify(pgn.relname.decode(enc), pgn.extra.decode(enc), pgn.be_pid)
yield n

Expand Down

0 comments on commit e292e84

Please sign in to comment.