Skip to content

Turn Exception in from_element and to_element into DIDLMetadataError#601

Merged
ghcs27 merged 1 commit intoSoCo:masterfrom
ghcs27:exception_to_metadata_error
Jul 28, 2018
Merged

Turn Exception in from_element and to_element into DIDLMetadataError#601
ghcs27 merged 1 commit intoSoCo:masterfrom
ghcs27:exception_to_metadata_error

Conversation

@ghcs27
Copy link
Copy Markdown
Member

@ghcs27 ghcs27 commented Mar 3, 2018

This PR turns Exceptions and ValueErrors which are raised in from_didl_string into DIDLMetadataErrors, allowing them to be caught in the event handling code. See #567 for why this is necessary.

@amelchio
Copy link
Copy Markdown
Contributor

Can we merge this for 0.16? Even if it is not the best solution, it is definitely better than the status quo.

(btw, not indicating that it isn't the best solution 😃)

@ghcs27
Copy link
Copy Markdown
Member Author

ghcs27 commented Jul 13, 2018

OK. If there are no objections, I will merge this next week.

@amelchio
Copy link
Copy Markdown
Contributor

@ghcs27 Just a friendly reminder about this one before the window closes.

@ghcs27 ghcs27 merged commit d53c320 into SoCo:master Jul 28, 2018
@ghcs27
Copy link
Copy Markdown
Member Author

ghcs27 commented Jul 28, 2018

Thanks!

@ghcs27 ghcs27 mentioned this pull request Jul 28, 2018
@stefankoegl stefankoegl added this to the 0.16 milestone Aug 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants