Skip to content

Commit

Permalink
0.9.9.2
Browse files Browse the repository at this point in the history
#####
1, 更新软件商店错误捕获

#####
  • Loading branch information
Xingsandesu committed Jan 20, 2024
1 parent ff98871 commit 80e7dec
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/index/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ def install():
return "解析JSON时出错, 可能是网络原因或者软件源没有app.json"
except requests.exceptions.Timeout:
return "请求超时,请检查网络或者软件源"
except requests.exceptions.RequestException as e:
logging.error(f"请求错误: {e}")
return f"请求错误: {e}"

return render_template('install.html', apps=apps)

Expand Down

0 comments on commit 80e7dec

Please sign in to comment.