I already know how to make user-defined exceptions, like this one:
class MyException(Exc eption):
pass
But for a module I'm making, I would like to make a warning (so it just
prints the warning to stderr and doesn't crash the program). I have
tried this:
class MyWarning(Warni ng):
pass
And it behaves like a normal error. Please help me, I can't figure out
what I'm doing wrong.
--
Ratfink
class MyException(Exc eption):
pass
But for a module I'm making, I would like to make a warning (so it just
prints the warning to stderr and doesn't crash the program). I have
tried this:
class MyWarning(Warni ng):
pass
And it behaves like a normal error. Please help me, I can't figure out
what I'm doing wrong.
--
Ratfink
Comment