Merge pull request #7727 from surajshetty3416/fix-postgres

fix(postgres): Pass tuple of all_ids instead of an array
This commit is contained in:
Deepesh Garg 2019-06-19 12:06:58 +05:30 committed by GitHub
commit aae730fe2a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -340,7 +340,7 @@ def msgprint(msg, title=None, raise_exception=0, as_table=False, indicator=None,
message_log.append(json.dumps(out))
if raise_exception:
if raise_exception and hasattr(raise_exception, '__name__'):
local.response['exc_type'] = raise_exception.__name__
_raise_exception()

View file

@ -80,7 +80,7 @@ def send(recipients=None, sender=None, subject=None, message=None, text_content=
recipients = list(set(recipients))
cc = list(set(cc))
all_ids = recipients + cc
all_ids = tuple(recipients + cc)
unsubscribed = frappe.db.sql_list('''
SELECT