This is an automated email from the ASF dual-hosted git repository.
tn pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tooling-trusted-release.git
The following commit(s) were added to refs/heads/main by this push:
new 871d08a fix file upload for release draft, consider empty file path
871d08a is described below
commit 871d08ade80800da870a68f5f458ac2883abfaff
Author: Thomas Neidhart <[email protected]>
AuthorDate: Fri Mar 28 13:41:52 2025 +0100
fix file upload for release draft, consider empty file path
---
atr/routes/draft.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/atr/routes/draft.py b/atr/routes/draft.py
index b4a314b..0c52d7a 100644
--- a/atr/routes/draft.py
+++ b/atr/routes/draft.py
@@ -208,7 +208,7 @@ async def add_project(
if await form.validate_on_submit():
try:
file_path = None
- if isinstance(form.file_path.data, str):
+ if isinstance(form.file_path.data, str) and form.file_path.data:
file_path = pathlib.Path(form.file_path.data)
file_data = form.file_data.data
if not isinstance(file_data, datastructures.FileStorage):
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]