Merge pull request #167 from marc-queiroz/master

After update to version 1.6.1 Exception UnicodeEncodeError closes the application
This commit is contained in:
Michael Lazar
2015-10-26 12:34:10 -07:00

View File

@@ -138,7 +138,7 @@ class BaseContent(object):
data['index'] = None # This is filled in later by the method caller data['index'] = None # This is filled in later by the method caller
if data['flair'] and not data['flair'].startswith('['): if data['flair'] and not data['flair'].startswith('['):
data['flair'] = '[{}]'.format(data['flair'].strip()) data['flair'] = u'[{}]'.format(data['flair'].strip())
url_full = data['url_full'] url_full = data['url_full']
if data['permalink'].split('/r/')[-1] == url_full.split('/r/')[-1]: if data['permalink'].split('/r/')[-1] == url_full.split('/r/')[-1]: