From 0072bee8457da68227557d2e5542ffc76a0b3642 Mon Sep 17 00:00:00 2001 From: Maxime Jublou Date: Mon, 18 Mar 2024 18:33:01 +0100 Subject: [PATCH] fix: linter --- naas/secret.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/naas/secret.py b/naas/secret.py index f12ee882..3b6ecd13 100644 --- a/naas/secret.py +++ b/naas/secret.py @@ -19,6 +19,7 @@ def __get_remote_secret(self, name: str): except naas_python.domains.secret.SecretSchema.SecretNotFound: print("Secret not found.") return None + #noqa: E722 except: print("Secret get failed. Please retry again in few seconds.") return None @@ -34,6 +35,7 @@ def __create_remote_secret(self, name: str, value: str): "Naas.api service request failed. Please retry again in few seconds." ) return False + #noqa: E722 except: print("Secret creation failed. Please retry again in few seconds.") return False @@ -49,6 +51,7 @@ def __create_remote_bulk_secret(self, secrets: str): "Naas.api service request failed. Please retry again in few seconds." ) return False + #noqa: E722 except: print("Secret creation failed. Please retry again in few seconds.") return False @@ -63,6 +66,7 @@ def __delete_remote_secret(self, name: str): "Naas.api service request failed. Please retry again in few seconds." ) return False + #noqa: E722 except: # print("Secret not found") return False