2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-18 21:15:41 +00:00

database not ready events are hard to reproduce consistently

This commit is contained in:
Matthias
2022-02-13 17:39:17 +01:00
parent 9d12a7172c
commit ad41957127
4 changed files with 5 additions and 5 deletions

View File

@ -40,6 +40,6 @@ class PartConfig(AppConfig):
item.part.trackable = True
item.part.clean()
item.part.save()
except (OperationalError, ProgrammingError):
except (OperationalError, ProgrammingError): # pragma: no cover
# Exception if the database has not been migrated yet
pass