group.of.nepali.translators team mailing list archive
-
group.of.nepali.translators team
-
Mailing list archive
-
Message #15289
[Bug 1594636] Re: get_unbound_discharge returns a tuple with (value, error)
** Changed in: snapcraft (Ubuntu)
Status: New => Fix Released
--
You received this bug notification because you are a member of नेपाली
भाषा समायोजकहरुको समूह, which is subscribed to Xenial.
Matching subscriptions: Ubuntu 16.04 Bugs
https://bugs.launchpad.net/bugs/1594636
Title:
get_unbound_discharge returns a tuple with (value, error)
Status in Snapcraft:
Fix Released
Status in snapcraft package in Ubuntu:
Fix Released
Status in snapcraft source package in Xenial:
Fix Released
Status in snapcraft source package in Yakkety:
Fix Released
Bug description:
In snapcraft/storeapi/__init__.py, the method get_unbound_discharge
returns a tuple. The first element is the return value on success, the
second is the error on failure.
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.
To manage notifications about this bug go to:
https://bugs.launchpad.net/snapcraft/+bug/1594636/+subscriptions