Browse Source

Fixed backup error in MySQL 5.5

bugfixes
gau1991 10 years ago
parent
commit
aa7d8f2714
  1. 6
      ee/core/mysql.py

6
ee/core/mysql.py

@ -93,11 +93,11 @@ class EEMysql():
# Allow p1 to receive a SIGPIPE if p2 exits # Allow p1 to receive a SIGPIPE if p2 exits
p1.stdout.close() p1.stdout.close()
output = p1.stderr.read() output = p1.stderr.read()
p1.wait()
if output == b'': if p1.returncode == 0:
Log.debug(self, "done") Log.debug(self, "done")
else: else:
Log.error(self, output) Log.error(self, output.decode("utf-8"))
except Exception as e: except Exception as e:
Log.error(self, "Error: process exited with status %s" Log.error(self, "Error: process exited with status %s"
% e) % e)

Loading…
Cancel
Save