Skip to content

Commit 1cbf646

Browse files
committed
chore: complete 66054b8 for sqlite
1 parent 1d28b7b commit 1cbf646

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/core/model_utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
connection,
3030
IntegrityError,
3131
models,
32+
OperationalError,
3233
ProgrammingError,
3334
transaction,
3435
)
@@ -692,7 +693,7 @@ def default_press():
692693
try:
693694
Press = apps.get_model("press", "Press")
694695
return Press.objects.first()
695-
except ProgrammingError:
696+
except (ProgrammingError, OperationalError):
696697
# Initial migration will attempt to call this,
697698
# even when no EditorialGroups are created
698699
return

0 commit comments

Comments
 (0)