Also check for unicode when converting to int value for output

git-svn-id: http://comictagger.googlecode.com/svn/trunk@360 6c5673fe-1810-88d6-992b-cd32ca31540c
This commit is contained in:
beville@gmail.com 2013-01-28 17:38:59 +00:00
parent 70f50c8595
commit 25b63dfc65
2 changed files with 2 additions and 3 deletions

View File

@ -115,7 +115,7 @@ class ComicBookInfo:
#helper func
def toInt(s):
i = None
if type(s) == str or type(s) == int:
if type(s) in [ str, unicode, int ]:
try:
i = int(s)
except ValueError:

View File

@ -1573,8 +1573,7 @@ class TaggerWindow( QtGui.QMainWindow):
if cv_md is None:
match_results.fetchDataFailures.append(ca.path)
if cv_md is not None:
if cv_md is not None:
md.overlay( cv_md )
if not ca.writeMetadata( md, self.save_data_style ):