From cd47d96de7a7aff1e1ea73d243768499bb462bf5 Mon Sep 17 00:00:00 2001 From: grossmj Date: Fri, 2 May 2014 16:20:10 -0600 Subject: [PATCH] Fixes error when ldd cannot be found. --- gns3server/modules/iou/iou_device.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gns3server/modules/iou/iou_device.py b/gns3server/modules/iou/iou_device.py index e4aa91ae..0090c36f 100644 --- a/gns3server/modules/iou/iou_device.py +++ b/gns3server/modules/iou/iou_device.py @@ -413,7 +413,7 @@ class IOUDevice(object): try: output = subprocess.check_output(["ldd", self._path]) - except subprocess.SubprocessError as e: + except (subprocess.SubprocessError, FileNotFoundError) as e: log.warn("could not determine the shared library dependencies for {}: {}".format(self._path, e)) return