petehunt/PyMySQL — Issue #89: Incorrect handling of "Too many connections”
Author: timanovsky
Created: 2011-11-28 16:26:40+00:00
State: open

Instead of providing accurate exception and info, pymysql crashes in packet parser

File "/srv/env/lib/python2.7/site-packages/pymysql/__init__.py", line 93, in Connect
return Connection(*args, **kwargs)
File "/srv/env/lib/python2.7/site-packages/pymysql/connections.py", line 510, in __init__
self._connect()
File "/srv/env/lib/python2.7/site-packages/pymysql/connections.py", line 676, in _connect
self._get_server_information()
File "/srv/env/lib/python2.7/site-packages/pymysql/connections.py", line 830, in _get_server_information
self.server_charset = charset_by_id(self.server_language).name
File "/srv/env/lib/python2.7/site-packages/pymysql/charset.py", line 173, in charset_by_id
return _charsets.by_id(id)
File "/srv/env/lib/python2.7/site-packages/pymysql/charset.py", line 21, in by_id
return self._by_id[id]
DBAPIError: (KeyError) 110 None None