Skip to content

Commit b0114b0

Browse files
authored
Merge pull request #260 from UAL-RE/fix_259
Improve handling of TinyURL errors
2 parents 6b312a7 + 6b76364 commit b0114b0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ldcoolp/curation/email/urls.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ def tiny_url(url: str, alias=None, log=None) -> str:
5757
response_data = response.text
5858
except HTTPError as error:
5959
log.warning(f"Caught an HTTPError: {error}")
60-
log.warning('Body:\n', response.text)
61-
raise HTTPError
60+
return "error"
6261

6362
return response_data

0 commit comments

Comments
 (0)