Deleting a file from a release raises exceptions.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
launchpadlib |
Triaged
|
Low
|
Unassigned |
Bug Description
When deleting a file from a release, exceptions are thrown.
To reproduce, run the following in python:
from launchpadlib.
import Launchpad,
cachedir = #### Enter your cachedir here.
lp = Launchpad.
#### ... authorization handshake. Make sure you give the script privileges to change anything!
proj = lp.projects[
#### 1. You have access privileges to delete release files.
#### 2. The project has a release with files uploaded to it.
>>> rel = proj.releases[0] #### Replace '0' by the number of the release with the file in it.
>>> f = rel.files[0]
>>> f.delete()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "build/
File "build/
File "build/
File "build/
File "build/
launchpadlib.
#######
Changed in launchpad-registry: | |
importance: | Undecided → Low |
status: | New → Triaged |
launchpadlib tries to refresh its view of the file and can't handle the fact that the file isn't there anymore.