blakev / python-syncthing

Python bindings to the Syncthing REST interface.
MIT License
75 stars 24 forks source link

Fix typo in code #19

Closed kmarius closed 6 years ago

kmarius commented 6 years ago

Otherwise I get the following error:

File "/usr/lib/python3.6/site-packages/syncthing/init.py", line 279, in config
return self.get('config')
File "/usr/lib/python3.6/site-packages/syncthing/init.py", line 180, in get
return_response, raw_exceptions)
File "/usr/lib/python3.6/site-packages/syncthing/init.py", line 250, in _request if isinstance(json_data, dict) and j.get('error'):
NameError: name 'j' is not defined