+

MantisWS : Increase error log of add_issue_to_project()

Benjamin Renard [2012-04-20 15:20:34]
MantisWS : Increase error log of add_issue_to_project()
Filename
src/usr/share/mantis-smtp/MantisWS.py
diff --git a/src/usr/share/mantis-smtp/MantisWS.py b/src/usr/share/mantis-smtp/MantisWS.py
index 29dbb3e..16fe0ef 100755
--- a/src/usr/share/mantis-smtp/MantisWS.py
+++ b/src/usr/share/mantis-smtp/MantisWS.py
@@ -39,8 +39,8 @@ class MantisWS(object):
 		try:
 			res = self.client.service.mc_issue_add(self.user,self.password,issue)
 			return res
-		except:
-			logging.error('Problem adding issue')
+		except Exception, e:
+			logging.error('Problem adding issue : %s' % e)
 			return None

 	def add_note_to_issue(self,issue_id,text):
ViewGit