Skip to content

Commit

Permalink
正确处理authorized为None
Browse files Browse the repository at this point in the history
  • Loading branch information
awwaawwa committed Dec 18, 2024
1 parent 754c551 commit c2c140a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pdf2zh/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,8 @@ def on_select_filetype(file_type):
def readuserandpasswd(file_path):
tuple_list = []
content = ""
if file_path is None:
return tuple_list, content
if len(file_path) == 2:
try:
with open(file_path[1], "r", encoding="utf-8") as file:
Expand Down

0 comments on commit c2c140a

Please sign in to comment.