You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are a number of different reasons for a KeyError to happen. We should handle this case better in the decorators in renku/service/views/error_handlers.py (or improve where the errors are originally raised, where possible).
In general, trying to catch all the errors we can identify (especially user-generated) and raise a more descriptive error is a good strategy. Everything un-catched could raise a ProgramSomethingError explaining in the devMessage how the parameters were wrong. If something ends up as a Program error but it shouldn't, we can always handle the case as soon as we identify it.
The text was updated successfully, but these errors were encountered:
This is a follow-up to #2303 (especially to this conversation)
There are a number of different reasons for a
KeyError
to happen. We should handle this case better in the decorators inrenku/service/views/error_handlers.py
(or improve where the errors are originally raised, where possible).In general, trying to catch all the errors we can identify (especially user-generated) and raise a more descriptive error is a good strategy. Everything un-catched could raise a
ProgramSomethingError
explaining in the devMessage how the parameters were wrong. If something ends up as a Program error but it shouldn't, we can always handle the case as soon as we identify it.The text was updated successfully, but these errors were encountered: