← Back to team overview

group.of.nepali.translators team mailing list archive

[Bug 1594636] Re: get_unbound_discharge returns a tuple with (value, error)

 

** Changed in: snapcraft
       Status: Fix Committed => 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 The Xenial Xerus:
  New
Status in The Yakkety Yak:
  New

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