← Back to team overview

group.of.nepali.translators team mailing list archive

[Bug 1593390] Re: Need better error handling in the parser

 

** No longer affects: Ubuntu Xenial

** No longer affects: Ubuntu Yakkety

-- 
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/1593390

Title:
  Need better error handling in the parser

Status in Snapcraft:
  Fix Released

Bug description:
  1. Don't use .get() to access wiki entry data.
  2. Raise exceptions to the top of the stack and log warnings.

  [Impact]

   * The parts origin will often change, and some changes might cause
  errors.

   * Better error messages will make it easier to fix the problems in
  the source.

  [Test Case]

   * Add an invalid wiki entry.
   * Run snapcraft-parser
   * Make sure that an error is printed, but that it's not fatal and the rest of the entries are properly parsed.

  [Regression Potential]

   * snapcraft-parse is relatively new. Some other use cases could be
  affected, so extensive exploratory is required here.

To manage notifications about this bug go to:
https://bugs.launchpad.net/snapcraft/+bug/1593390/+subscriptions