Ubuntu Pastebin

Paste from Nate Finch at Fri, 22 May 2015 02:42:48 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
#!/usr/bin/env python

import logging

try:
	try:
		raise Exception("what I want to see")
	except Exception as e:
		print("original exception: %s" % e.message)
		try:
			raise Exception("dumb error during cleanup I don't care about")
		except Exception as e2:
			print("cleanup exception: %s" % e2.message)
		raise e
except Exception as e3:
	print("traceback for reraised exception:")
	logging.exception(e3)
Download as text