Skip to content

Commit

Permalink
Stop showing handler name when hander is not set. (PyMySQL#1004)
Browse files Browse the repository at this point in the history
  • Loading branch information
methane committed Aug 28, 2021
1 parent 33d165d commit 78f0cf9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pymysql/connections.py
Original file line number Diff line number Diff line change
Expand Up @@ -998,8 +998,7 @@ def _process_auth(self, plugin_name, auth_packet):
else:
raise err.OperationalError(
2059,
"Authentication plugin '%s' (%r) not configured"
% (plugin_name, handler),
"Authentication plugin '%s' not configured" % (plugin_name,),
)
pkt = self._read_packet()
pkt.check_error()
Expand Down

0 comments on commit 78f0cf9

Please sign in to comment.