diff markup/input.py @ 213:13d2d4420628 trunk

Store original message in exceptions as `msg` ivar.
author cmlenz
date Thu, 31 Aug 2006 08:49:37 +0000
parents fc6b2fb66518
children
line wrap: on
line diff
--- a/markup/input.py
+++ b/markup/input.py
@@ -34,6 +34,7 @@
 
     def __init__(self, message, filename='<string>', lineno=-1, offset=-1):
         Exception.__init__(self, message)
+        self.msg = message
         self.filename = filename
         self.lineno = lineno
         self.offset = offset
Copyright (C) 2012-2017 Edgewall Software