def _DetectApplicationUsageTable(self, conn):
    try:
      conn.execute(APPLICATION_USAGE_TABLE_DETECT)
      exists = True
    except sqlite3.OperationalError, e:
      if e.args[0].startswith('no such table'):
        exists = False
      else:
        raise
    return exists
Detect whether the application usage table exists.
dataset/ETHPy150Open google/macops/crankd/ApplicationUsage.py/ApplicationUsage._DetectApplicationUsageTable