Skip to content

Commit

Permalink
Fix deprecation warning (usage of Exception.message).
Browse files Browse the repository at this point in the history
  • Loading branch information
lericson committed Oct 26, 2009
1 parent 69ba8c0 commit 8e35a74
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion clevercss.py
Expand Up @@ -478,11 +478,12 @@ class EvalException(Exception):

def __init__(self, lineno, message):
self.lineno = lineno
self.msg = message
Exception.__init__(self, message)

def __str__(self):
return '%s (line %s)' % (
self.message,
self.msg,
self.lineno
)

Expand Down

0 comments on commit 8e35a74

Please sign in to comment.