def connect(self):
        try:
            return self.module.connect(**self.parameters)
        except self.module.OperationalError as e:
            raise DBError('psycopg2: %s' % e)
dataset/ETHPy150Open piranha/nomad/nomad/engine/dbapi.py/Pgsql.connect/original