fix: handle all exceptions in fetch toolstore tools error logging

This commit is contained in:
CaptainB 2025-09-29 14:51:55 +08:00
parent 4991890739
commit 54eb60d2c4

View File

@ -777,7 +777,7 @@ class ToolSerializer(serializers.Serializer):
finally:
# 清理临时文件
os.unlink(temp_zip_path)
except requests.RequestException as e:
except Exception as e:
maxkb_logger.error(f"fetch appstore tools error: {e}")
return {'apps': [], 'additionalProperties': {'tags': []}}