SourceForge.getRemoteProduct() returns an ASCII string; Product.remote_product expects unicode
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
Low
|
Colin Watson |
Bug Description
There are errors in the update-
Traceback (most recent call last):
File "cronscripts/
script.
File "/srv/launchpad
implicit_
File "/srv/launchpad
self.main()
File "cronscripts/
updater.
File "/srv/launchpad
self.
File "/srv/launchpad
product.
File "/srv/launchpad
obj_
File "/srv/launchpad
raise TypeError("Expected unicode, found %r: %r"
TypeError: Expected unicode, found <type 'str'>: '100894&659341'
This is because SourceForge.
The best thing to do is probably to make sure that the remote product is a unicode string before setting it in the update-
Changed in malone: | |
assignee: | nobody → gmb |
importance: | Undecided → Medium |
milestone: | none → 2.2.3 |
status: | New → Triaged |
Changed in malone: | |
assignee: | gmb → nobody |
milestone: | 2.2.3 → 2.2.4 |
Changed in malone: | |
milestone: | 2.2.4 → 2.2.5 |
Changed in malone: | |
milestone: | 2.2.5 → none |
Changed in launchpad: | |
importance: | Medium → Low |
I'm not sure this was ever fixed directly, but it was effectively fixed as part of porting to Python 3: when running on Python 3, the `str` object returned by `SourceForge. getRemoteProduc t` is a Unicode object.