def import_crate(project): """ Try importing a Project model from Crate. """ try: result = tastyapi_client.import_crate(project) if result: log.debug(LOG_TEMPLATE.format(project=project.slug, version='', msg="Successful import from Crate")) else: log.debug(LOG_TEMPLATE.format(project=project.slug, version='', msg="Failed import from Crate")) except: log.debug(LOG_TEMPLATE.format(project=project.slug, version='', msg="Failed import from Crate"), exc_info=True)
def import_crate(project): """ Try importing a Project model from Crate. """ try: result = tastyapi_client.import_crate(project) if result: log.info("Successful import from Crate") else: log.info("Failed import from Crate") except: log.info("Failed import from Crate", exc_info=True)
# Needs to happen after update_intersphinx clear_artifacts(version.pk) # Try importing from Open Comparison sites. try: result = tastyapi_client.import_project(project) if result: log.info("Successful import from Open Comparison") else: log.info("Failed import from Open Comparison") except: log.info("Failed import from Open Comparison", exc_info=True) # Try importing from Crate try: result = tastyapi_client.import_crate(project) if result: log.info("Successful import from Crate") else: log.info("Failed import from Crate") except: log.info("Failed import from Crate", exc_info=True) return True @task def update_imported_docs(version_pk): """ Check out or update the given project's repository.