get_env_list raises TypeError in offline mode
See original GitHub issueBug Description
If call get_env_list()
in offline mode, it raises TypeError
.
Reproduction Steps
>>> import visdom
>>> vis = visdom.Visdom(offline=True, log_to_filename="/tmp/log.visdom")
>>> vis.get_env_list()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/opt/conda/lib/python3.7/site-packages/visdom/__init__.py", line 822, in get_env_list
return json.loads(self._send({}, endpoint='env_state', quiet=True))
File "/opt/conda/lib/python3.7/json/__init__.py", line 341, in loads
raise TypeError(f'the JSON object must be str, bytes or bytearray, '
TypeError: the JSON object must be str, bytes or bytearray, not bool
Issue Analytics
- State:
- Created 3 years ago
- Comments:10 (10 by maintainers)
Top Results From Across the Web
No results found
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hey @JackUrb please close this issue
Hey @JackUrb i removed whitespaces , please merge my PR now. Thank you