remove pop descriptor

pull/203/head
meihkv 2021-10-14 14:53:05 -04:00 committed by GitHub
parent c461e00bb4
commit 53323bfa7d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -104,7 +104,6 @@ class Connection(object):
@classmethod
def _close(cls, descriptor):
descriptor = descriptor.rsplit('//')[0]+'//'+descriptor.rsplit('//')[1].replace('+',' ')
if isinstance(descriptor, Connection):
conn = descriptor
else:
@ -116,7 +115,7 @@ class Connection(object):
"Could not close connection because it was not found amongst these: %s"
% str(cls.connections.keys())
)
cls.connections.pop(descriptor)
cls.connections.pop(str(conn.metadata.bind.url))
conn.session.close()
def close(self):