From aa7d8f271429d5336ec0ba568745757ec82b2dda Mon Sep 17 00:00:00 2001 From: gau1991 Date: Tue, 3 Mar 2015 17:40:12 +0530 Subject: [PATCH] Fixed backup error in MySQL 5.5 --- ee/core/mysql.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ee/core/mysql.py b/ee/core/mysql.py index 3ae821fb..7c523bf1 100644 --- a/ee/core/mysql.py +++ b/ee/core/mysql.py @@ -93,11 +93,11 @@ class EEMysql(): # Allow p1 to receive a SIGPIPE if p2 exits p1.stdout.close() output = p1.stderr.read() - - if output == b'': + p1.wait() + if p1.returncode == 0: Log.debug(self, "done") else: - Log.error(self, output) + Log.error(self, output.decode("utf-8")) except Exception as e: Log.error(self, "Error: process exited with status %s" % e)