import socket

try:
	raise socket.gaierror("Error!")
except socket.gaierror as e:
	print("Oh, my! An error! %s" % e)