Browse code

* S3/Exception.py: Python 2.4 doesn't automatically set Exception.message.

git-svn-id: https://s3tools.svn.sourceforge.net/svnroot/s3tools/s3cmd/trunk@299 830e0280-6d2a-0410-9c65-932aecc39d9d

Michal Ludvig authored on 2008/12/29 14:12:09
Showing 2 changed files
... ...
@@ -1,5 +1,7 @@
1 1
 2008-12-29  Michal Ludvig  <michal@logix.cz>
2 2
 
3
+	* S3/Exception.py: Python 2.4 doesn't automatically set 
4
+	  Exception.message.
3 5
 	* run-tests.py: Improved testsuite, added parameters support
4 6
 	  to run only specified tests, cleaned up win/posix integration.
5 7
 
... ...
@@ -12,6 +12,9 @@ except ImportError:
12 12
 	import elementtree.ElementTree as ET
13 13
 
14 14
 class S3Exception(Exception):
15
+	def __init__(self, message = ""):
16
+		self.message = message
17
+
15 18
 	def __str__(self):
16 19
 		## Is this legal?
17 20
 		return unicode(self)