質問するログイン新規登録

質問編集履歴

2

追加修正

2018/06/18 10:04

投稿

beginner_py
beginner_py

スコア13

title CHANGED
File without changes
body CHANGED
@@ -71,7 +71,7 @@
71
71
  if (r[e] is None):
72
72
  r[e] = str("")
73
73
  r[e] = str(r[e]).encode('utf-8')
74
- r[e] = r[e].replace(str('\'', '\'\''))
74
+ r[e] = r[e].replace('\'', '\'\'')
75
75
  -----------------------------------------------------------ーーーーー
76
76
  com.append('\'{0}\''.format(r[e]))
77
77
  # Duplication check.

1

修正

2018/06/18 10:04

投稿

beginner_py
beginner_py

スコア13

title CHANGED
File without changes
body CHANGED
@@ -65,12 +65,14 @@
65
65
  'crunchbase_Profile_Image_URL__c', 'CreatedDate', 'Total_VC_Investment__c', 'Id']
66
66
  elements = [str(e) for e in elements]
67
67
  for e in elements:
68
+
69
+ エラー部分-----------------------------------------------------------
68
70
  # Convert NoneType Object as ""
69
71
  if (r[e] is None):
70
72
  r[e] = str("")
71
73
  r[e] = str(r[e]).encode('utf-8')
72
- r[e] = str(r[e]).replace(str('\'', '\'\''))
74
+ r[e] = r[e].replace(str('\'', '\'\''))
73
-
75
+ -----------------------------------------------------------ーーーーー
74
76
  com.append('\'{0}\''.format(r[e]))
75
77
  # Duplication check.
76
78
  # It seems salesforce returns duplicated records.