def check_for_missing_table(error, table_name):
    """
    Determines if the error is caused by a missing  table.

    Parses the exception message to determine this.

    Inputs
    ------

    e (ProgrammingError): ProgrammingError exception caught during a query
    table_name (string): Name of the table to check.
    """
    return ('relation "{}" does not exist'.format(table_name) in str(error))