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:
@@ -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):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user