Ask coding questions
Hello! I wanna know how to add a warning to your repl because I forgot, thanks!
What do you mean by that?If you want to make a custom error, you can do this
class MyCustomError(Exception): pass
You can then raise MyCustomError and catch it with try/except
raise MyCustomError
try
except
Thanks! :D
What do you mean by that?
If you want to make a custom error, you can do this
You can then
raise MyCustomError
and catch it withtry
/except
Thanks! :D