Merge branch 'master' into develop
This commit is contained in:
commit
f7ce9cc896
2 changed files with 2 additions and 3 deletions
|
|
@ -421,7 +421,7 @@ class DefaultAccount(with_metaclass(TypeclassBase, AccountDB)):
|
||||||
|
|
||||||
kwargs["options"] = options
|
kwargs["options"] = options
|
||||||
|
|
||||||
if text and not (isinstance(text, basestring) or isinstance(text, tuple)):
|
if not (isinstance(text, basestring) or isinstance(text, tuple)):
|
||||||
# sanitize text before sending across the wire
|
# sanitize text before sending across the wire
|
||||||
try:
|
try:
|
||||||
text = to_str(text, force_string=True)
|
text = to_str(text, force_string=True)
|
||||||
|
|
|
||||||
|
|
@ -569,8 +569,7 @@ class DefaultObject(with_metaclass(TypeclassBase, ObjectDB)):
|
||||||
except Exception:
|
except Exception:
|
||||||
logger.log_trace()
|
logger.log_trace()
|
||||||
|
|
||||||
|
if not (isinstance(text, basestring) or isinstance(text, tuple)):
|
||||||
if text and not (isinstance(text, basestring) or isinstance(text, tuple)):
|
|
||||||
# sanitize text before sending across the wire
|
# sanitize text before sending across the wire
|
||||||
try:
|
try:
|
||||||
text = to_str(text, force_string=True)
|
text = to_str(text, force_string=True)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue