using exceptions

Mark McEahern marklists at mceahern.com
Sun May 19 17:23:54 EDT 2002


Try something like this:

	try:
		1/0
	except Exception, e:
		print e.__class__.__name__

Cheers,

// mark





More information about the Python-list mailing list