|
@@ -97,7 +97,7 @@ class orthancInterface:
|
|
|
print(e)
|
|
|
|
|
|
|
|
|
- def delete(self,url):
|
|
|
+ def delete(self,url,timeout=None):
|
|
|
|
|
|
debug=False
|
|
|
if debug:
|
|
@@ -105,7 +105,7 @@ class orthancInterface:
|
|
|
|
|
|
headers=urllib3.util.make_headers(basic_auth=self.getBasicAuth())
|
|
|
try:
|
|
|
- return self.http.request('DELETE',url,headers=headers)
|
|
|
+ return self.http.request('DELETE',url,headers=headers,timeout=timeout)
|
|
|
except urllib3.exceptions.HTTPError as e:
|
|
|
print(e)
|
|
|
return None
|