You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
The __str__ method of the Mail class, doesn't actually return anything #292
The __str__ method of the Mail class, doesn't actually return anything, hence trying something like logging.debug("Mail: %s\n", some_mail), where some_mail is an instance of the Mail class, will result in an exception.
Steps to Reproduce
Instantiate the Mail class
Print the instance
This will result in a TypeError exception:
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-8-119834a39903> in <module>()
----> 1 print(message)
TypeError: __str__ returned non-string (type NoneType)
Activity
thinkingserious commentedon Jan 25, 2017
Thanks @dpapavas!
I've added this to our backlog for a fix.
diegoc-am commentedon Aug 30, 2017
Created pull request #338
Version Bump v5.1.0: Pull #338, Solves #292 __str__