api/dblp_sql.py
def insert(conn, ins):
    """Attempt to run an insertion statement; return results, None if error."""
    try:
        ins_res = conn.execute(ins)
    except sa.exc.IntegrityError as err:
        # a paper already exists with this id
        logging.error(str(err))
        return None
    except Exception as e:
        logging.error('unexpected exception\n%s', str(e))
        return None
    else:
        return ins_res
Attempt to run an insertion statement; return results, None if error.
Attempt to run an insertion statement; return results, None if error.
Attempt to run an insertion statement ; return results None if error .
def insert(conn, ins):
    try:
        ins_res = conn.execute(ins)
    except sa.exc.IntegrityError as err:
        logging.error(str(err))
        return None
    except Exception as e:
        logging.error('unexpected exception\n%s', str(e))
        return None
    else:
        return ins_res
def insert ( conn , ins ) : try : ins_res = conn . execute ( ins ) except sa . exc . IntegrityError as err : logging . error ( str ( err ) ) return None except Exception as e : logging . error ( 'unexpected exception\n%s' , str ( e ) ) return None else : return ins_res
Attempt to run an insertion statement; return results, None if error.
Attempt to run an insertion statement ; return results None if error .
"""Attempt to run an insertion statement; return results, None if error.""" # a paper already exists with this id
conn
ins