瀏覽代碼

Merge pull request #458 from qqueing/main

bugfix
Byaidu 1 年之前
父節點
當前提交
5f996f11d9
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      pdf2zh/high_level.py

+ 1 - 1
pdf2zh/high_level.py

@@ -312,7 +312,7 @@ def translate(
     result_files = []
 
     for file in files:
-        if file is str and (file.startswith("http://") or file.startswith("https://")):
+        if type(file) is str and (file.startswith("http://") or file.startswith("https://")):
             print("Online files detected, downloading...")
             try:
                 r = requests.get(file, allow_redirects=True)