Skip to content

Commit

Permalink
Merge pull request #19 from kmarius/master
Browse files Browse the repository at this point in the history
Fix typo in code
  • Loading branch information
blakev committed Feb 17, 2018
2 parents 2cb67b0 + abdd7a0 commit 6c7d2d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion syncthing/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ def _request(self, method, endpoint, data=None, headers=None, params=None,
else:
return content

if isinstance(json_data, dict) and j.get('error'):
if isinstance(json_data, dict) and json_data.get('error'):
api_err = json_data.get('error')
raise SyncthingError(api_err)
return json_data
Expand Down

0 comments on commit 6c7d2d6

Please sign in to comment.