fix encoding issue
This commit is contained in:
parent
f265722d0a
commit
c65a31369d
1 changed files with 2 additions and 1 deletions
|
|
@ -21,6 +21,7 @@
|
|||
|
||||
import os
|
||||
import sys
|
||||
import locale
|
||||
import time
|
||||
import logging
|
||||
from weboob.core import Weboob, CallErrors
|
||||
|
|
@ -179,7 +180,7 @@ class BoobankMuninPlugin(object):
|
|||
|
||||
def print_errors(self, errors):
|
||||
for backend, err, backtrace in errors:
|
||||
print >>sys.stderr, '%s(%s): %s' % (type(err).__name__, backend.name, err)
|
||||
print >>sys.stderr, (u'%s(%s): %s' % (type(err).__name__, backend.name, err)).encode(sys.stdout.encoding or locale.getpreferredencoding(), 'replace')
|
||||
if isinstance(err, BrowserIncorrectPassword):
|
||||
self.weboob.backends_config.edit_backend(backend.name, backend.NAME, {'_enabled': False})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue