Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix bug when there is an empty line in mc admin response
`json.loads(line)` would throw an error if line is empty (e.g. `line == ''`). To fix it, simply check if line is truthy (i.e. not empty). Also, `text=True` is passed `subprocess.run` to ensure `proc.stdout` is a string and not bytes object.
- Loading branch information