mirror of
https://github.com/inventree/InvenTree.git
synced 2025-05-01 21:16:46 +00:00
remove tries - if we are here the AppReg should be ready or fail
This commit is contained in:
parent
d2ea76d350
commit
84871fdc79
@ -52,11 +52,7 @@ class LabelConfig(AppConfig):
|
|||||||
if they do not already exist
|
if they do not already exist
|
||||||
"""
|
"""
|
||||||
|
|
||||||
try:
|
from .models import StockItemLabel
|
||||||
from .models import StockItemLabel
|
|
||||||
except AppRegistryNotReady: # pragma: no cover
|
|
||||||
# Database might not by ready yet
|
|
||||||
return
|
|
||||||
|
|
||||||
src_dir = os.path.join(
|
src_dir = os.path.join(
|
||||||
os.path.dirname(os.path.realpath(__file__)),
|
os.path.dirname(os.path.realpath(__file__)),
|
||||||
@ -139,11 +135,7 @@ class LabelConfig(AppConfig):
|
|||||||
if they do not already exist
|
if they do not already exist
|
||||||
"""
|
"""
|
||||||
|
|
||||||
try:
|
from .models import StockLocationLabel
|
||||||
from .models import StockLocationLabel
|
|
||||||
except AppRegistryNotReady: # pragma: no cover
|
|
||||||
# Database might not yet be ready
|
|
||||||
return
|
|
||||||
|
|
||||||
src_dir = os.path.join(
|
src_dir = os.path.join(
|
||||||
os.path.dirname(os.path.realpath(__file__)),
|
os.path.dirname(os.path.realpath(__file__)),
|
||||||
@ -233,11 +225,7 @@ class LabelConfig(AppConfig):
|
|||||||
if they do not already exist.
|
if they do not already exist.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
try:
|
from .models import PartLabel
|
||||||
from .models import PartLabel
|
|
||||||
except AppRegistryNotReady: # pragma: no cover
|
|
||||||
# Database might not yet be ready
|
|
||||||
return
|
|
||||||
|
|
||||||
src_dir = os.path.join(
|
src_dir = os.path.join(
|
||||||
os.path.dirname(os.path.realpath(__file__)),
|
os.path.dirname(os.path.realpath(__file__)),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user