Skip to content

Commit 69470a0

Browse files
committed
Raise proper PostgresPartitioningError when PSQLEXTRA_PARTITIONING_MANAGER is not set
1 parent 6c6f499 commit 69470a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

psqlextra/management/commands/pgpartition.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def _ask_for_confirmation() -> bool:
107107
@staticmethod
108108
def _partitioning_manager():
109109
partitioning_manager = getattr(
110-
settings, "PSQLEXTRA_PARTITIONING_MANAGER"
110+
settings, "PSQLEXTRA_PARTITIONING_MANAGER", None
111111
)
112112
if not partitioning_manager:
113113
raise PostgresPartitioningError(

0 commit comments

Comments
 (0)