Commit e79fe6a
authored
bugfix: HF Detector exceptions now handled gracefully by default (#1170)
Resolves #482
`HFDetector` would raise exceptions from the underlying model by
default. This was fine in the earliest days but stability is higher now.
Changes:
* `graceful_fail` default is now `True`
* `graceful_fail` exposed as configurable param
* detector failures are logged
* rm a `print`
## Verification
- [ ] run detectors tests
- [ ] try and find a HFDetector that fails and put it the wrapped
through its paces1 file changed
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| 81 | + | |
81 | 82 | | |
82 | 83 | | |
83 | 84 | | |
| |||
129 | 130 | | |
130 | 131 | | |
131 | 132 | | |
132 | | - | |
133 | | - | |
134 | 133 | | |
135 | 134 | | |
136 | 135 | | |
| |||
144 | 143 | | |
145 | 144 | | |
146 | 145 | | |
147 | | - | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
148 | 149 | | |
149 | 150 | | |
150 | 151 | | |
| |||
0 commit comments