Bench update would not run

Currently running version 6 and this is what i get when i run bench update.

administrator@skserpserver:~/frappe-bench$ bench update
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 9, in
load_entry_point(‘bench==0.0.0’, ‘console_scripts’, ‘bench’)()
File “/home/administrator/bench-repo/bench/”, line 40, in cli
File “/usr/local/lib/python2.7/dist-packages/click/”, line 716, in call
return self.main(*args, **kwargs)
File “/usr/local/lib/python2.7/dist-packages/click/”, line 696, in main
rv = self.invoke(ctx)
File “/usr/local/lib/python2.7/dist-packages/click/”, line 1060, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/local/lib/python2.7/dist-packages/click/”, line 889, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/local/lib/python2.7/dist-packages/click/”, line 534, in invoke
return callback(*args, **kwargs)
File “/home/administrator/bench-repo/bench/commands/”, line 31, in update
version_upgrade = is_version_upgrade()
File “/home/administrator/bench-repo/bench/”, line 102, in is_version_upgrade
upstream_version = get_upstream_version(‘frappe’, bench=bench, branch=branch)
File “/home/administrator/bench-repo/bench/”, line 150, in get_upstream_version
return get_version_from_string(contents)
File “/home/administrator/bench-repo/bench/”, line 206, in get_version_from_string
AttributeError: ‘NoneType’ object has no attribute ‘group’

What is this error? And how to solve it? Thanks!

cd /home/administrator/bench-repo/
git pull

Then bench update will work

Thanks! Working now!