Invalid config object for SMTPConnection
Bug #988180 reported by
Aleksandr Smyshliaev
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar hookless email |
New
|
Undecided
|
Unassigned |
Bug Description
Using Bazaar version 2.5.0, the script fails with the following traceback:
Traceback (most recent call last):
File "/home/
main()
File "/home/
branch.update()
File "/home/
smtp = SMTPConnection(
File "/usr/lib/
self.
AttributeError: 'BranchConfig' object has no attribute 'get'
To post a comment you must log in.
It appears that SMTPConnection wants a Stack object for its config argument. Following patch helps:
=== modified file 'bzr_hookless_ email.py' email.py 2012-03-22 15:15:15 +0000 email.py 2012-04-25 06:05:55 +0000
self. _config = self._branch. get_config( )
--- bzr_hookless_
+++ bzr_hookless_
@@ -159,7 +159,7 @@
def update(self): self._config) self._branch. get_config_ stack() ) _to_send( ): email(revision)
- smtp = SMTPConnection(
+ smtp = SMTPConnection(
smtp_from = None
for revision in self._revisions
msg = self._compose_