...
response: ReadPumpStatus:size[64]:data:{'status': 'normal', 'bolusing': False, 'suspended': False}
hexdump:
python
0000 0x03 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........
0008 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........
0010 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........
0018 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........
0020 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........
0028 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........
0030 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........
0038 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ........
#### decoded:
python
{'status': 'normal', 'bolusing': False, 'suspended': False}
Traceback (most recent call last):
File "/usr/local/bin/mm-latest.py", line 4, in <module>
__import__('pkg_resources').run_script('decocare==0.0.28', 'mm-latest.py')
File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 719, in run_script
File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 1504, in run_script
File "/usr/local/lib/python2.7/dist-packages/decocare-0.0.28-py2.7.egg/EGG-INFO/scripts/mm-latest.py", line 211, in <module>
app.run(None)
File "/usr/local/lib/python2.7/dist-packages/decocare-0.0.28-py2.7.egg/decocare/helpers/cli.py", line 114, in run
self.main(args)
File "/usr/local/lib/python2.7/dist-packages/decocare-0.0.28-py2.7.egg/EGG-INFO/scripts/mm-latest.py", line 200, in main
self.report_status(args)
File "/usr/local/lib/python2.7/dist-packages/decocare-0.0.28-py2.7.egg/EGG-INFO/scripts/mm-latest.py", line 130, in report_status
args.status.write(json.dumps(self.status, indent=2))
AttributeError: 'bool' object has no attribute 'write'
---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/35032694-attributeerror-bool-object-has-no-attribute-write-mm-latest-py?utm_campaign=plugin&utm_content=tracker%2F522759&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F522759&utm_medium=issues&utm_source=github).