codetree doesn't handle badly formed options in URLs
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
codetree |
Fix Released
|
Undecided
|
Tim Kuhlman |
Bug Description
If you have a URL that you're passing to codetree such as:
postgresql cs:postgresql?
You get a traceback as follows:
Traceback (most recent call last):
File "/usr/lib/
lineno=
File "/usr/lib/
url, D.source_options = cls.parse_
File "/usr/lib/
options.
ValueError: dictionary update sequence element #0 has length 1; 2 is required
Codetree should give a more informative error, highlighting the line it's having problems parsing.
Related branches
- Tom Haddon: Approve
- Stuart Bishop (community): Approve
- Tim Kuhlman: Pending requested
-
Diff: 14 lines (+4/-1)1 file modifiedcodetree/config.py (+4/-1)
Changed in codetree: | |
status: | New → In Progress |
assignee: | nobody → Tim Kuhlman (timkuhlman) |
Changed in codetree: | |
status: | In Progress → Fix Committed |
Changed in codetree: | |
status: | Fix Committed → Fix Released |
Note that the line 'postgresql cs:postgresql? overwrite' actually creates a different error as it tries to send that to the charm store. The error above is from 'postgresql cs:postgresql; overwrite'