summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgweis <gerhard.weis@gmail.com>2015-09-03 07:04:45 (GMT)
committergweis <gerhard.weis@gmail.com>2015-09-03 07:04:45 (GMT)
commit27d3bca47e4d39bd5038665726fb157577c5abfa (patch)
tree4ed48ffe1e2e6dd73bd9b1e3d5ad835fd4d4d044
parentdcff15cf97f79a4cbd33797a4634ff1f12adb5dd (diff)
parenta41b63f8841e7b5e804c0b328e90cd22f731cb72 (diff)
downloadisodate-27d3bca47e4d39bd5038665726fb157577c5abfa.tar.gz
Merge pull request #26 from reinhrst/master
typo in error message
-rw-r--r--src/isodate/duration.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/isodate/duration.py b/src/isodate/duration.py
index a901865..5408315 100644
--- a/src/isodate/duration.py
+++ b/src/isodate/duration.py
@@ -216,7 +216,7 @@ class Duration(object):
months=self.months * other)
newduration.tdelta = self.tdelta * other
return newduration
- raise TypeError('unsupported operand type(s) for +: %s and %s' %
+ raise TypeError('unsupported operand type(s) for *: %s and %s' %
(self.__class__, other.__class__))
def __rmul__(self, other):
@@ -227,7 +227,7 @@ class Duration(object):
months=self.months * other)
newduration.tdelta = self.tdelta * other
return newduration
- raise TypeError('unsupported operand type(s) for +: %s and %s' %
+ raise TypeError('unsupported operand type(s) for *: %s and %s' %
(other.__class__, self.__class__))
def __sub__(self, other):