Fix crashes with unicode characters in maintainer name
Change every mention of MAINTAINER to avoid future issues.
This commit is contained in:
parent
c7c23b11ab
commit
3a66728392
72 changed files with 73 additions and 73 deletions
|
|
@ -176,8 +176,8 @@ class QtDo(QObject):
|
|||
if not msg:
|
||||
msg = 'Website is unavailable.'
|
||||
elif isinstance(error, NotImplementedError):
|
||||
msg = 'This feature is not supported by this backend.\n\n' \
|
||||
'To help the maintainer of this backend implement this feature, please contact: %s <%s>' % (backend.MAINTAINER, backend.EMAIL)
|
||||
msg = u'This feature is not supported by this backend.\n\n' \
|
||||
u'To help the maintainer of this backend implement this feature, please contact: %s <%s>' % (backend.MAINTAINER, backend.EMAIL)
|
||||
elif isinstance(error, UserError):
|
||||
if not msg:
|
||||
msg = type(error).__name__
|
||||
|
|
|
|||
|
|
@ -223,7 +223,7 @@ class BaseBackend(object):
|
|||
# Backend name.
|
||||
NAME = None
|
||||
# Name of the maintainer of this backend.
|
||||
MAINTAINER = '<unspecified>'
|
||||
MAINTAINER = u'<unspecified>'
|
||||
# Email address of the maintainer.
|
||||
EMAIL = '<unspecified>'
|
||||
# Version of backend (for information only).
|
||||
|
|
|
|||
|
|
@ -66,7 +66,7 @@ class GenericComicReaderBrowser(BaseBrowser):
|
|||
|
||||
class GenericComicReaderBackend(BaseBackend, ICapGallery):
|
||||
NAME = 'genericcomicreader'
|
||||
MAINTAINER = 'Noé Rubinstein'
|
||||
MAINTAINER = u'Noé Rubinstein'
|
||||
EMAIL = 'noe.rubinstein@gmail.com'
|
||||
VERSION = '0.d'
|
||||
DESCRIPTION = 'Generic comic reader backend; subclasses implement specific sites'
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ class GenericNewspaperBackend(BaseBackend, ICapMessages):
|
|||
"""
|
||||
GenericNewspaperBackend class
|
||||
"""
|
||||
MAINTAINER = 'Julien Hebert'
|
||||
MAINTAINER = u'Julien Hebert'
|
||||
EMAIL = 'juke@free.fr'
|
||||
VERSION = '0.d'
|
||||
LICENSE = 'AGPLv3+'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue