Skip to content

Commit

Permalink
Merge pull request #859 from cslux/fix-attribute-error
Browse files Browse the repository at this point in the history
fixed attribute error in restartable class (Fix #858)
  • Loading branch information
cannatag committed Aug 18, 2020
2 parents 5cfc420 + befa1f4 commit dfd8e9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ldap3/strategy/restartable.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def send(self, message_type, request, controls=None):
error = 'restart tls in restartable not successful' + (' - ' + self.connection.last_error if self.connection.last_error else '')
if log_enabled(ERROR):
log(ERROR, '%s for <%s>', error, self)
self.unbind()
self.connection.unbind()
raise LDAPStartTLSError(error)
if message_type != 'bindRequest':
self.connection.bind(read_server_info=False, controls=self._last_bind_controls) # binds with previously used controls unless the request is already a bindRequest
Expand Down

0 comments on commit dfd8e9f

Please sign in to comment.