Forum

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Jean_Rodriguez

Pages: [1]
1
Python and Java API / IndentationError: expected an indented block
« on: March 22, 2021, 06:10:30 PM »
Hi,
i'm trying to run a python script but i have this message:

IndentationError: expected an indented block
Error: expected an indented block (D:/code_python/script1.py, line 28)

In my code, the line 28 is: print("""/!\ ATTENTION /!\ : aucun chemin d'enregistrement fourni !""")

26: project_path = PhotoScan.app.getSaveFileName("D:\09._Rapport de stage\code_python\Project_mobile.psx")
27: if not project_path:
28: print("""/!\ ATTENTION /!\ : aucun chemin d'enregistrement fourni !""")
29: if project_path[-4:].lower() != ".psx":
30: project_path += ".psx"


Pages: [1]