HomeSoftware Heritage

Handle psycopg2 OperationalError in cli initialization

This commit no longer exists in the repository. It may have been part of a branch which was deleted.

Description

Handle psycopg2 OperationalError in cli initialization

When running the cli with default settings (i.e. pointing to a
softwareheritage-scheduler-dev database), and the database doesn't exist, an
OperationalError is raised.

This shouldn't prevent (some of the) cli subcommands from working, so catch this
error and ignore it as one of the scheduler backend setup failure modes.

Details

Provenance
olasdAuthored on Jun 10 2020, 11:28 AM
olasdPushed on Jun 10 2020, 12:33 PM
Differential Revision
D3248: Replace swh-worker-control with a swh scheduler celery-monitor subcommand
Build Status
Buildable 12739
Build 19375: test-and-buildJenkins console · Jenkins

Commit No Longer Exists

This commit no longer exists in the repository.