Resolved error

This commit is contained in:
Jawayria
2021-02-02 21:20:41 +05:00
parent 69e0dc7d68
commit d1c21db40f

View File

@@ -146,7 +146,7 @@ def is_mysql_running():
"""
# We need to check whether or not mysql is running as a process
# even if it is not daemonized.
with open(os.devnull, 'w') as os_devnull: # lint-amnesty, pylint: disable=W6005, bad-option-value
with open(os.devnull, 'w') as os_devnull: # lint-amnesty, pylint: disable=bad-option-value
#pgrep returns the PID, which we send to /dev/null
returncode = subprocess.call("pgrep mysqld", stdout=os_devnull, shell=True)
return returncode == 0