Catch error in serializing unknown boosts
This commit is contained in:
parent
1f4b3e9586
commit
919b166241
4 changed files with 25 additions and 7 deletions
|
@ -258,10 +258,9 @@ def resolve_remote_id(remote_id, model=None, refresh=False, save=True):
|
|||
# load the data and create the object
|
||||
try:
|
||||
data = get_data(remote_id)
|
||||
except (ConnectorException, ConnectionError):
|
||||
except ConnectorException:
|
||||
raise ActivitySerializerError(
|
||||
"Could not connect to host for remote_id in %s model: %s"
|
||||
% (model.__name__, remote_id)
|
||||
"Could not connect to host for remote_id in: %s" % (remote_id)
|
||||
)
|
||||
# determine the model implicitly, if not provided
|
||||
if not model:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue