Skip to content

Commit 2d3e283

Browse files
committed
Fix linting errors
1 parent ae5cbca commit 2d3e283

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

plasticity/__init__.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@
66
import json
77
import requests
88

9+
910
class PlasticityAPITimeoutError(Exception):
1011
pass
1112

13+
1214
class Plasticity(object):
1315
"""A Plasticity class that holds the user's API token and
1416
location (url) of the API to be used.
@@ -48,9 +50,10 @@ def _post(self, url, data, timeout=None):
4850
if self.token:
4951
headers['authorization'] = "Bearer " + self.token
5052
try:
51-
response = requests.request("POST", url, data=data, headers=headers, timeout=timeout)
53+
response = requests.request(
54+
"POST", url, data=data, headers=headers, timeout=timeout)
5255
except requests.exceptions.Timeout:
53-
raise PlasticityAPITimeoutError("The request timed out.")
56+
raise PlasticityAPITimeoutError("The request timed out.")
5457
try:
5558
return json.loads(response.text)
5659
except ValueError:

0 commit comments

Comments
 (0)