Skip to content

Commit ad39c6d

Browse files
committed
for flake
Signed-off-by: Katharina Trentau <[email protected]>
1 parent 0465356 commit ad39c6d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/kaas/k8s-default-storage-class/k8s-default-storage-class-check.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,14 +240,14 @@ def clean(self):
240240
api_response = self.k8s_core_api.delete_namespaced_pod(
241241
self.pod_name, self.namespace
242242
)
243-
except:
243+
except Exception:
244244
logger.error(f"The pod {self.pod_name} couldn't be deleted.", exc_info=True)
245245
try:
246246
logger.debug(f"delete pvc:{self.pvc_name}")
247247
api_response = self.k8s_core_api.delete_namespaced_persistent_volume_claim(
248248
self.pvc_name, self.namespace
249249
)
250-
except:
250+
except Exception:
251251
logger.error(f"The PVC {self.pvc_name} couldn't be deleted.", exc_info=True)
252252
return api_response
253253

0 commit comments

Comments
 (0)