Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(xmlupload): improve URL recognition (DEV-1557) #266

Merged
merged 3 commits into from Dec 13, 2022

Conversation

jnussbaum
Copy link
Collaborator

resolves DEV-1557

@linear
Copy link

linear bot commented Dec 12, 2022

DEV-1557 Figure out CSS

Description

Checklist

@jnussbaum jnussbaum self-assigned this Dec 12, 2022
Copy link
Collaborator

@BalduinLandolt BalduinLandolt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, I remarked only one minor thing

Comment on lines +1345 to 1346
except BaseError:
raise BaseError(f"Failed validation in resource '{calling_resource}', property '{name}': "
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this seems like a bit of an anti-pattern: Raising an exception just to discard it again and raising the same exception again. If you moved the nicer error message to the UriValue object, you would not need to do the try or the raise here at all.

@jnussbaum jnussbaum merged commit 60f8fe5 into main Dec 13, 2022
@jnussbaum jnussbaum deleted the wip/dev-1557-improve-url-recognition branch December 13, 2022 08:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants