API breakage: 'ConnectBug' object has no attribute 'Error'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-launchpad-bugs |
Fix Released
|
High
|
Brian Murray |
Bug Description
I just updated the p-lp-bugs main checkout in the apport retracers, and they now fail with
Traceback (most recent call last):
File "/home/
opts.dup_db, opts.arch_
File "/home/
self.
File "/home/
self.
File "/home/
fixed_ver = self.get_
File "/home/
except Bug.Error.
AttributeError: 'ConnectBug' object has no attribute 'Error'
with
Bug = Connector.
This looks like a recent API breakage. If it is really justified, I'd need to do apport SRUs for stable releases, or some weird workaround hacks, but preferably Python libraries should not break API unless they really have to. Can this be put back in a sane way?
Thank you!
Related branches
Changed in python-launchpad-bugs: | |
assignee: | nobody → brian-murray |
importance: | Undecided → High |
status: | New → Fix Committed |
patch added to reimplement the old behavior
please test this against this code (copy from apport/ crashdb_ impl/launchpad. py):
In [8]: try: LPUrlError, e: startswith( 'Page not found'):
...: b = Bug(1111234536356)
...: except Bug.Error.
...: if e.value.
...: print "PAGE NOT FOUND"
...: else:
...: raise
...:
...:
PAGE NOT FOUND
Markus