1
0
mirror of https://github.com/janeczku/calibre-web synced 2025-10-27 13:28:04 +00:00

Fix except clause

except: will catch specific error.
This commit is contained in:
林檎
2017-03-06 11:44:54 +08:00
parent cf4816fc13
commit 0bc4f52783
4 changed files with 12 additions and 11 deletions

View File

@@ -5,9 +5,9 @@ from lxml import etree
import os
import uploader
try:
import StringIO
except:
from io import StringIO
except ImportError as e:
import StringIO
def get_fb2_info(tmp_file_path, original_file_extension):