Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 29, 2024
1 parent f7b0ce9 commit 4ac5e24
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dbbackup/management/commands/dbbackup.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,9 @@ def handle(self, **options):
self.storage = get_storage()

self.database = options.get("database") or ""
database_keys = self.database.split(",") if self.database else settings.DATABASES
database_keys = (
self.database.split(",") if self.database else settings.DATABASES
)

for database_key in database_keys:
self.connector = get_connector(database_key)
Expand Down

0 comments on commit 4ac5e24

Please sign in to comment.