SyntaxError: invalid syntax during updating

error code occured during updating, please help analyse what is problem, and how to solve.

SyntaxError: invalid syntax

Compiling ../apps/frappe/frappe/utils/commands.py ...
  File "../apps/frappe/frappe/utils/commands.py", line 11
  req = requests.get(f"https://api.github.com/users/{org}/repos", {"type": "sources", "per_page": 200})
                                                             ^
SyntaxError: invalid syntax

Can you elaborate your command?

I think there is a sytax issue.

pyhton version,

1 Like
Updating customizations for Address
Generating Website Theme Files...
Compiling Python Files...
Compiling ../apps/frappe/frappe/integrations/frappe_providers/frappecloud.py ...
  File "../apps/frappe/frappe/integrations/frappe_providers/frappecloud.py", line 275
print("Uploading files ({}/3)".format(x+1), end="\r")
                                               ^
SyntaxError: invalid syntax

Compiling ../apps/frappe/frappe/utils/commands.py ...
  File "../apps/frappe/frappe/utils/commands.py", line 11
req = requests.get(f"https://api.github.com/users/{org}/repos", {"type": "sources", "per_page": 200})
                                                             ^
SyntaxError: invalid syntax