Commits

Walter Dörwald  committed 54c8bfb

Automatically add "exc" tag for logging exceptions.

  • Participants
  • Parent commits 7de59cd

Comments (0)

Files changed (1)

File src/ll/sisyphus.py

 			for text in texts:
 				text = self._string(text)
 				if isinstance(text, BaseException):
+					if "exc" not in tags:
+						tags += ["exc"]
 					tb = u"".join(traceback.format_tb(sys.exc_info()[-1]))
 					text = u"{tb}\n{exc}".format(tb=tb, exc=self._exc(text))
 				elif not isinstance(text, unicode):