From fc3fe7b837e99e36ae0d548feeea214a27094bd7 Mon Sep 17 00:00:00 2001 From: jaydee Date: Tue, 6 Jan 2026 22:02:06 +0100 Subject: [PATCH] build --- portainer/api.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/portainer/api.py b/portainer/api.py index 7448d19..65a75c4 100644 --- a/portainer/api.py +++ b/portainer/api.py @@ -365,8 +365,11 @@ class PortainerApi: try: for c in containers: print(c) - cont.append([c["Names"][0].replace("/", ""),c["Id"], c['Image']]) - contr.append([c["Names"][0].replace("/", ""), c["Id"], c['Image']]) + try: + cont.append([c["Names"][0].replace("/", ""),c["Id"], c['Image']]) + contr.append([c["Names"][0].replace("/", ""), c["Id"], c['Image']]) + except: + print("Unable to parse container info") if self.all_data["endpoints"]["by_id"][endpoint] in data: data[self.all_data["endpoints"]["by_id"][endpoint]] = contr data[endpoint] = contr