if commentbuf:
if patch:
- cpatch = patch
- else:
+ cpatch = patch
+ else:
cpatch = find_patch_for_comment(mail)
if not cpatch:
return (None, None)
try:
patch.save()
except Exception, ex:
- print ex.message
+ print str(ex)
if comment:
if save_required:
try:
comment.save()
except Exception, ex:
- print ex.message
+ print str(ex)
return 0