Skip to content

Commit

Permalink
Changed to use sys.exc_info, if possible.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jim Fulton committed Sep 14, 1998
1 parent 6f91ad3 commit e78c28b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions DT_Var.py
Expand Up @@ -164,8 +164,8 @@
''' # '
__rcs_id__='$Id: DT_Var.py,v 1.23 1998/09/14 22:03:33 jim Exp $'
__version__='$Revision: 1.23 $'[11:-2]
__rcs_id__='$Id: DT_Var.py,v 1.24 1998/09/14 22:08:13 jim Exp $'
__version__='$Revision: 1.24 $'[11:-2]

from DT_Util import parse_params, name_param, html_quote, str
import regex, string, sys, regex
Expand Down Expand Up @@ -224,7 +224,8 @@ def render(self, md):
elif fmt=='': val=''
else: val = fmt % val
except:
t, v = sys.exc_type, sys.exc_value
t, v= sys.exc_type, sys.exc_value
if hasattr(sys, 'exc_info'): t, v = sys.exc_info()[:2]
if val is None or not str(val): return args['null']
raise t, v

Expand Down

0 comments on commit e78c28b

Please sign in to comment.