V6 update errors

For a while when I try to update, I get this error. I figured it would pass with a few updates on github but over the past month or so nothing has changed.

~/frappe-bench$ bench update
remote: Counting objects: 355, done.
remote: Compressing objects: 100% (241/241), done.
remote: Total 355 (delta 208), reused 84 (delta 84), pack-reused 30
Receiving objects: 100% (355/355), 271.76 KiB | 0 bytes/s, done.
Resolving deltas: 100% (213/213), completed with 51 local objects.
From https://github.com/frappe/frappe
   075a6a2..d631f13  develop    -> upstream/develop
Traceback (most recent call last):
  File "/usr/local/bin/bench", line 9, in <module>
    load_entry_point('bench==0.92', 'console_scripts', 'bench')()
  File "/home/servername/bench-repo/bench/cli.py", line 40, in cli
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 700, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 680, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 1027, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 873, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 508, in invoke
    return callback(*args, **kwargs)
  File "/home/servername/bench-repo/bench/commands/update.py", line 31, in update
    version_upgrade = is_version_upgrade()
  File "/home/servername/bench-repo/bench/app.py", line 102, in is_version_upgrade
    upstream_version = get_upstream_version('frappe', bench=bench, branch=branch)
  File "/home/servername/bench-repo/bench/app.py", line 150, in get_upstream_version
    return get_version_from_string(contents)
  File "/home/servername/bench-repo/bench/app.py", line 206, in get_version_from_string
    return match.group(2)
AttributeError: 'NoneType' object has no attribute 'group'

Do the following:

  1. Go to bench-repo folder
  2. git pull origin
  3. Go back to frappe-bench folder
  4. Run bench update

If you are develop branch, you might be asked to run bench update --upgrade. This is because we have changed the version of frappe and erpnext in the develop branch to v7.0.0-beta


Amazing, worked great! Thanks!