From d64d212854f14031b516efefb4151f8f98c08812 Mon Sep 17 00:00:00 2001 From: haosenwang1018 Date: Wed, 25 Feb 2026 02:58:06 +0000 Subject: [PATCH] fix: replace 2 bare excepts with except Exception in caption_datasets.py --- UniPic-1/src/datasets/understanding/caption_datasets.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/UniPic-1/src/datasets/understanding/caption_datasets.py b/UniPic-1/src/datasets/understanding/caption_datasets.py index 015aec9..8b39832 100644 --- a/UniPic-1/src/datasets/understanding/caption_datasets.py +++ b/UniPic-1/src/datasets/understanding/caption_datasets.py @@ -9,10 +9,10 @@ from einops import rearrange try: from aoss_client.client import Client -except: +except Exception: try: from petrel_client.client import Client - except: + except Exception: Client = None from glob import glob from xtuner.registry import BUILDER