Check your /home/frappe/.bench/bench/app.py file
OR
/home/your-erpnext-user-account/.bench/bench/app.py file
line 409, in switch_branch reload_module(utils)
Should be reload_module(bench.utils)
Correct this manually and then try to update again.