Skip to content
Sign UpLog In
Profile icon

lzk

@lzk
Repls
Community
lzk
lzk
shared a Post
2 years ago
How to add warning to your python REPL?
Hello! I wanna know how to add a warning to your repl because I forgot, thanks!
19ecal
19ecal
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/except2 years ago