chore: 清理死文件和裸 except
- 删除空文件 sitecustomize.py - 修复 tools/simple_region_selector.py 中的裸 except: Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
84e8d0c46d
commit
5ce314b41c
2 files changed
+1
-2
No files matched your search
@@ -1 +0,0 @@
|
||||
|
||||
@@ -240,7 +240,7 @@ Ctrl+F: 适应窗口"""
|
||||
if self.scale != 1.0:
|
||||
try:
|
||||
resample = Image.Resampling.LANCZOS if hasattr(Image, 'Resampling') else Image.LANCZOS
|
||||
except:
|
||||
except Exception:
|
||||
resample = Image.BICUBIC
|
||||
resized = self.img.resize((disp_w, disp_h), resample)
|
||||
else:
|
||||
|
||||
Reference in new issue
Block a user