From 57eb79d26559b916faf779f492252765653df602 Mon Sep 17 00:00:00 2001 From: Eric Harney Date: Tue, 30 Mar 2021 17:47:21 -0400 Subject: [PATCH] Remove unused _db_error code from cmd/manage.py This method is not used. Change-Id: I4a877013d4518494e86f3112513625e2e945fffb --- cinder/cmd/manage.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/cinder/cmd/manage.py b/cinder/cmd/manage.py index 371d5e018c7..b68a0e642f0 100644 --- a/cinder/cmd/manage.py +++ b/cinder/cmd/manage.py @@ -129,14 +129,6 @@ def args(*args, **kwargs): return _decorator -def _db_error(caught_exception): - print('%s' % caught_exception) - print(_("The above error may show that the database has not " - "been created.\nPlease create a database using " - "'cinder-manage db sync' before running this command.")) - sys.exit(1) - - class HostCommands(object): """List hosts."""