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
+2 -2
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):