Fix pyhton 3 compatibility

This commit is contained in:
Suraj Shetty 2018-08-21 16:29:06 +05:30
parent 631c170ccf
commit 3cd0c54438

View File

@ -3,12 +3,13 @@ import frappe, requests, json
from frappe.utils import now
from frappe.frappeclient import FrappeClient
from frappe.desk.form.load import get_attachments
from six import string_types
@frappe.whitelist()
def call_hub_method(method, params=None):
connection = get_hub_connection()
if type(params) == unicode:
if isinstance(params, string_types):
params = json.loads(params)
params.update({