forked from openlp/openlp
fixed for fedora
This commit is contained in:
parent
9c42011541
commit
c6f29ca53d
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python3
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
# vim: autoindent shiftwidth=4 expandtab textwidth=80 tabstop=4 softtabstop=4
|
# vim: autoindent shiftwidth=4 expandtab textwidth=80 tabstop=4 softtabstop=4
|
||||||
|
|
||||||
|
@ -196,7 +196,7 @@ def check_latest_version(current_version):
|
|||||||
req.add_header(u'User-Agent', u'OpenLP/%s' % current_version[u'full'])
|
req.add_header(u'User-Agent', u'OpenLP/%s' % current_version[u'full'])
|
||||||
remote_version = None
|
remote_version = None
|
||||||
try:
|
try:
|
||||||
remote_version = unicode(urllib2.urlopen(req, None).read()).strip()
|
remote_version = unicode(urllib2.urlopen(req, None).read().decode()).strip()
|
||||||
except IOError:
|
except IOError:
|
||||||
log.exception(u'Failed to download the latest OpenLP version file')
|
log.exception(u'Failed to download the latest OpenLP version file')
|
||||||
if remote_version:
|
if remote_version:
|
||||||
|
Loading…
Reference in New Issue
Block a user