ioerror in python code example
Example: python IOError
import sys
def FunctionLol():
try:
f = open ( "bernie.txt", 'r' )
except IOError, e:
print("IOError: " + e)
print(sys.exc_type)
FunctionLol()
import sys
def FunctionLol():
try:
f = open ( "bernie.txt", 'r' )
except IOError, e:
print("IOError: " + e)
print(sys.exc_type)
FunctionLol()