Personalized Code Not Working : HELP

Hello :slightly_smiling_face: I have a huge problem with my personalized code to link Diabolocom with Hubspot : Could you please help me ?

Here is the part of the code :

try:

ApiResponse = hubspot.crm.contacts.basic_api.get_by_id(event.get(‘object’).get(‘objectId’), properties=[“phone”,“hs_object_id”])

phone = ApiResponse.properties.get(‘phone’)

phone = re.sub(“^0(.*)”,r"33\1",phone)
phone=phone.replace(" “,”")

hs_object_id = ApiResponse.properties.get(‘hs_object_id’)

except ApiException as e:

print(e)

raise

And here is my ERROR :

[ERROR] Runtime.UserCodeSyntaxError: Syntax error in module 'hubspotHandler': invalid syntax (file.py, line 25)
Traceback (most recent call last):
  File "/var/task/file.py" Line 25
    phone=ApiResponse.properties.get('phone')And i just want to cry beacause i don't understand...Thank you by adavance for your advices !Céline

Hi, @CMayer2 :waving_hand: Thanks for reaching out. Hey, @JBeatty @taran42, do you have any Python wisdom you can share with @CMayer2?

Thank you! — Jaycee

Hi :slightly_smiling_face: Thank you so much to try to help me :slightly_smiling_face:

I did some corrections and i have now an other error code : Fichiers Journaux…

I really need help please :slightly_smiling_face:

Thank you by advance !

Céline