Project

General

Profile

Bug #39914

portfolio, 'map' object is not subscriptable

Added by Frédéric Péters 11 days ago. Updated 8 days ago.

Status:
Solution déployée
Priority:
Normal
Target version:
-
Start date:
14 Feb 2020
Due date:
% Done:

0%

Patch proposed:
Yes
Planning:
No

Description

Exception:
  type = '<class 'TypeError'>', value = ''map' object is not subscriptable'

Stack trace (most recent call first):
  File "/usr/lib/python3/dist-packages/wcs/portfolio.py", line 134, in pick
   132             scheme, netloc, path, qs, frag = urlparse.urlsplit(url)
   133             path = map(None, path.split('/'))
>  134             name = urllib.unquote(path[-1])
   135             from .qommon.form import PicklableUpload
   136             download = PicklableUpload(name, content_type='application/pdf')

0001-remove-obsolete-map-None.-usage-39914.patch View (946 Bytes) Frédéric Péters, 14 Feb 2020 10:56 PM

Associated revisions

Revision 0a38132d (diff)
Added by Frédéric Péters 11 days ago

remove obsolete map(None...) usage (#39914)

Revision 4453cdcf (diff)
Added by Frédéric Péters 11 days ago

remove obsolete map(None...) usage (#39914)

History

#1 Updated by Frédéric Péters 11 days ago

Pas la moindre idée du pourquoi de cette construction, l'origine est #6651. (et help(map) "If the function is None, return a list of the items of the sequence (or a list of tuples if more than one sequence).").

#2 Updated by Thomas Noël 11 days ago

  • Status changed from Solution proposée to Résolu (à déployer)
commit 4453cdcf754528009d47433f598bbd008ad4ad89
Author: Frédéric Péters <fpeters@entrouvert.com>
Date:   Fri Feb 14 22:56:21 2020 +0100

    remove obsolete map(None...) usage (#39914)

#3 Updated by Frédéric Péters 8 days ago

  • Status changed from Résolu (à déployer) to Solution déployée

Also available in: Atom PDF