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