From a1c76ec4f2c360fc0d67e18d948fa6a77f7ea531 Mon Sep 17 00:00:00 2001 From: grossmj Date: Thu, 7 Apr 2022 16:34:48 +0800 Subject: [PATCH] Fix ComputeConflictError import --- gns3server/controller/node.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gns3server/controller/node.py b/gns3server/controller/node.py index 1b61aa31..dde8c9e2 100644 --- a/gns3server/controller/node.py +++ b/gns3server/controller/node.py @@ -24,7 +24,8 @@ import os from .controller_error import ( ControllerError, ControllerTimeoutError, - ComputeError + ComputeError, + ComputeConflictError ) from .ports.port_factory import PortFactory, StandardPortFactory, DynamipsPortFactory from ..utils.images import images_directories @@ -403,7 +404,7 @@ class Node: response = await self._compute.post( f"/projects/{self._project.id}/{self._node_type}/nodes", data=data, timeout=timeout ) - except ComputeConflict as e: + except ComputeConflictError as e: if e.response.get("exception") == "ImageMissingError": res = await self._upload_missing_image(self._node_type, e.response["image"]) if not res: