Skip to content

Commit

Permalink
fix: gui launch error
Browse files Browse the repository at this point in the history
fix: gui launch error
Tests passed.
  • Loading branch information
reycn authored Dec 18, 2024
2 parents 7d45c7b + 40bbf7e commit 9bd873a
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 or len(file_path) == 0:
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 9bd873a

Please sign in to comment.