Fix except clause
except: will catch specific error.
This commit is contained in:
+2
-2
@@ -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