Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
No need for the exception variable
Browse files Browse the repository at this point in the history
  • Loading branch information
dbkr committed May 3, 2017
1 parent c038040 commit 482a2ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion synapse/http/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ def _exceptionFromFailedRequest(self, response, body):
errcode = jsonBody['errcode']
error = jsonBody['error']
return MatrixCodeMessageException(response.code, error, errcode)
except (ValueError, KeyError) as e:
except (ValueError, KeyError):
return CodeMessageException(response.code, body)

# XXX: FIXME: This is horribly copy-pasted from matrixfederationclient.
Expand Down

0 comments on commit 482a2ad

Please sign in to comment.