mirror of
https://github.com/OCA/account-financial-tools.git
synced 2025-02-02 12:47:26 +02:00
[FIX] account_chart_update: Avoid Unicode decode error
This commit is contained in:
@@ -226,7 +226,7 @@ class WizardUpdateChartsAccounts(models.TransientModel):
|
||||
perform_rest = True
|
||||
if self.update_account:
|
||||
self._update_accounts()
|
||||
if (EXCEPTION_TEXT in log_output.getvalue() and
|
||||
if (EXCEPTION_TEXT in log_output.getvalue().decode('utf-8') and
|
||||
not self.continue_on_errors): # Abort early
|
||||
perform_rest = False
|
||||
# Clear this cache for avoiding incorrect account hits (as it was
|
||||
|
||||
Reference in New Issue
Block a user