qconfig fails when no E-mail address in whoami
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Invalid
|
Undecided
|
Unassigned | ||
QBzr |
Fix Released
|
Medium
|
Alexander Belchenko |
Bug Description
Context:
My whoami does not list an E-mail address. I'm just experimenting so far and so did not bother to list one. But qconfig has problems handling this (on Mac OS X 10.5.3). Other qbzr commands seem to be generally working.
Problem as reqported by trying the command:
bzr qconfig
bzr: ERROR: exceptions.
Traceback (most recent call last):
File "/Library/
return run_bzr(argv)
File "/Library/
ret = run(*run_argv)
File "/Library/
return self.run(
File "/Library/
window = QBzrConfigWindow()
File "/Library/
return obj(*args, **kwargs)
File "/Library/
self.load()
File "/Library/
except errors.
NameError: global name 'errors' is not defined
bzr 1.5 on python 2.5.1 (darwin)
arguments: ['/usr/
encoding: 'UTF-8', fsenc: 'utf-8', lang: 'en_US.UTF-8'
plugins:
bzrtools /Library/
launchpad /Library/
qbzr /Library/
rebase /Library/
*** Bazaar has encountered an internal error.
Please report a bug at https:/
including this traceback, and a description of what you
were doing when the error occurred.
The code referenced is:
def load(self):
"""Load the configuration."""
config = GlobalConfig()
parser = config.
# Name & e-mail
username = config.username()
if username:
try:
except errors.
Changed in bzr: | |
status: | New → Invalid |
Changed in qbzr: | |
importance: | Undecided → Medium |
status: | New → Confirmed |
Changed in qbzr: | |
milestone: | none → 0.9.1 |
Changed in qbzr: | |
status: | Fix Committed → Fix Released |
this is strictly in qbzr. It is trying to access "errors.NoName..." exception, but it forgot to "from bzrlib import errors" earlier in the script.