get_unbound_discharge returns a tuple with (value, error)
Bug #1594636 reported by
Leo Arias
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snapcraft |
Fix Released
|
Medium
|
Leo Arias | ||
snapcraft (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Xenial |
Fix Released
|
Medium
|
Unassigned | ||
Yakkety |
Fix Released
|
Medium
|
Unassigned |
Bug Description
In snapcraft/
That's not pythonic. The method should return the value or raise an exception.
[Impact]
* For users, none.
* For developers, the code is less clear because it's not following the common python practices.
[Test Case]
* Run all the methods that access the store:
login, upload, download.
[Regression Potential]
* This could affect the commands that access the store.
Changed in snapcraft: | |
status: | In Progress → Fix Committed |
Changed in snapcraft: | |
status: | Fix Committed → Fix Released |
affects: | Ubuntu Xenial → snapcraft (Ubuntu Xenial) |
Changed in snapcraft (Ubuntu Xenial): | |
status: | New → Fix Released |
importance: | Undecided → Medium |
Changed in snapcraft (Ubuntu Yakkety): | |
status: | New → Fix Released |
importance: | Undecided → Medium |
Changed in snapcraft (Ubuntu): | |
status: | New → Fix Released |
To post a comment you must log in.
Also get_macaroon in the same file returns a tuple.