How can I write a try/except block that catches all exceptions?
try
except
try: whatever() except: # this will catch any exception or error
It is worth mentioning this is not proper Python coding. This will catch also many errors you might not want to catch.