Skip to content

Commit 19764b3

Browse files
committed
add back general exception
Signed-off-by: JerT33 <[email protected]>
1 parent 0d8c1ea commit 19764b3

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

backend/metadata_writer/src/metadata_writer.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
import collections
2020
import kubernetes
2121
import yaml
22-
import urllib3
2322
from time import sleep
2423
import lru
2524

@@ -400,7 +399,9 @@ def is_kfp_v2_pod(pod) -> bool:
400399
# If the for loop ended, a server-side timeout occurred. Continue watching.
401400
pass
402401

403-
except urllib3.exceptions.ReadTimeoutError as e:
404-
# Client side timeout, continue watching.
402+
except Exception as e:
403+
# Client side timeout, print stack trace and continue watching.
404+
import traceback
405+
print(traceback.format_exc())
405406
continue
406407

0 commit comments

Comments
 (0)