|
|
|
|
|
by goodoldneon
950 days ago
|
|
> What if the program receives an interrupt signal during the get_user call? You shouldn't catch interrupt signals regardless of whether you're throwing or returning errors. This is why your error classes should extend Exception and not BaseException. The interrupt errors (e.g. KeyboardInterrupt) extend BaseException |
|