Like swallow_exception(), but re-raises the current exception after logging it.
(format_string="", *args, **kwargs)
| 216 | |
| 217 | |
| 218 | def reraise_exception(format_string="", *args, **kwargs): |
| 219 | """Like swallow_exception(), but re-raises the current exception after logging it.""" |
| 220 | |
| 221 | assert "exc_info" not in kwargs |
| 222 | _exception(format_string, *args, **kwargs) |
| 223 | raise |
| 224 | |
| 225 | |
| 226 | def to_file(filename=None, prefix=None, levels=LEVELS): |
no test coverage detected
searching dependent graphs…