Error while upgrading to Version 13

#erpnextversion13

frappe@sunil-HP-348-G4:~/v13-bench$ bench update --patch
Backing up sites...
Traceback (most recent call last):
  File "/usr/lib/python3.5/runpy.py", line 174, in _run_module_as_main
    mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
  File "/usr/lib/python3.5/runpy.py", line 109, in _get_module_details
    __import__(pkg_name)
  File "/home/frappe/v13-bench/apps/frappe/frappe/__init__.py", line 347
    print(f"Message: {repr(out.message).encode('utf-8')}")
                                                        ^
SyntaxError: invalid syntax

Hi,

Please help me to come out of the above-mentioned error.

Thanks.
Sunil Govind

Hello @SunilBGovind,

Upgrade Python instance to 3.6+. This code below is a template string syntax available for Python 3.6+

print(f"Message: {repr(out.message).encode('utf-8')}") 

Regards,

Ivan