fix: handle all exceptions in fetch toolstore tools error logging
parent
4991890739
commit
54eb60d2c4
|
|
@ -777,7 +777,7 @@ class ToolSerializer(serializers.Serializer):
|
||||||
finally:
|
finally:
|
||||||
# 清理临时文件
|
# 清理临时文件
|
||||||
os.unlink(temp_zip_path)
|
os.unlink(temp_zip_path)
|
||||||
except requests.RequestException as e:
|
except Exception as e:
|
||||||
maxkb_logger.error(f"fetch appstore tools error: {e}")
|
maxkb_logger.error(f"fetch appstore tools error: {e}")
|
||||||
return {'apps': [], 'additionalProperties': {'tags': []}}
|
return {'apps': [], 'additionalProperties': {'tags': []}}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue