An Error Occured: Python Exception Occurred

(, InterfaceError(0, ''), )
Traceback (most recent call last):
  File "/var/www/superduper/gallery.py", line 437, in <module>
    superlib.dbconnect()
  File "../lib/superlib.py", line 148, in dbconnect
    db = MySQLdb.connect(passwd=config.db_pass, db=config.db_name, user=config.db_user)
  File "/usr/lib/python2.7/dist-packages/MySQLdb/__init__.py", line 81, in Connect
    return Connection(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/MySQLdb/connections.py", line 204, in __init__
    super(Connection, self).__init__(*args, **kwargs2)
InterfaceError: (0, '')