[BUG] Dangerous behavior of HierarchicalPipeline
during interval prediction
#1257
Closed
1 task done
Labels
bug
Something isn't working
🐛 Bug Report
In
HierarchicalPipeline
during interval prediction we have this code. For example, if something breaks before we change methods back, they will stay swapped, and it can lead to very strange behavior.Expected behavior
User can't see the behavior with swapped methods.
It can probably be fixed with
try/finally
clause with reraising exception after switching methods back.How To Reproduce
.
Environment
No response
Additional context
No response
Checklist
The text was updated successfully, but these errors were encountered: