From a4864869957cf355c85ae0dd67d5c3a2fc8c2e7f Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Fri, 20 May 2022 18:30:43 +0200 Subject: [PATCH] fix circular imports --- ereuse_devicehub/resources/action/views/snapshot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ereuse_devicehub/resources/action/views/snapshot.py b/ereuse_devicehub/resources/action/views/snapshot.py index 5e58b830..55a6065e 100644 --- a/ereuse_devicehub/resources/action/views/snapshot.py +++ b/ereuse_devicehub/resources/action/views/snapshot.py @@ -11,7 +11,6 @@ from marshmallow import ValidationError from sqlalchemy.util import OrderedSet from ereuse_devicehub.db import db -from ereuse_devicehub.parser.models import SnapshotsLog from ereuse_devicehub.resources.action.models import Snapshot from ereuse_devicehub.resources.device.models import Computer from ereuse_devicehub.resources.device.sync import Sync @@ -138,6 +137,7 @@ class SnapshotView(SnapshotMixin): try: self.snapshot_json = resource_def.schema.load(snapshot_json) except ValidationError as err: + from ereuse_devicehub.parser.models import SnapshotsLog txt = "{}".format(err) uuid = snapshot_json.get('uuid') error = SnapshotsLog(