Skip to content

Commit

Permalink
chore: format
Browse files Browse the repository at this point in the history
  • Loading branch information
Byaidu committed Dec 3, 2024
1 parent 623fd4c commit dfd3063
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pdf2zh/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def download_with_limit(url, save_path, size_limit):
try:
_, params = cgi.parse_header(content)
filename = params["filename"]
except:
except Exception:
filename = os.path.basename(url)
with open(save_path / filename, "wb") as file:
for chunk in response.iter_content(chunk_size=chunk_size):
Expand Down

0 comments on commit dfd3063

Please sign in to comment.