Fix module import error masking missing modules
ClosedPublic

Authored by mkrizek on Nov 20 2015, 6:04 PM.

Details

Summary

This ensures no missing module error message is lost, encapsulates errors into TaskotronImportError so it doesn't look like a bug (just ImportError) and contains a somewhat user-friendly hint if missing import is from libtaskotron.

Test Plan

Tests amended. Tried importing nonexisting module (both from and outside libtaskotron) from rpm_utils, worked.

Diff Detail

Repository
rLTRN libtaskotron
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
mkrizek retitled this revision from to Fix module import error masking missing modules.Nov 20 2015, 6:04 PM
mkrizek updated this object.
mkrizek edited the test plan for this revision. (Show Details)
mkrizek added reviewers: tflink, kparal, jskladan, lbrabec.
jskladan accepted this revision.Nov 23 2015, 9:03 AM
This revision is now accepted and ready to land.Nov 23 2015, 9:03 AM
tflink accepted this revision.Nov 24 2015, 6:30 PM
This revision was automatically updated to reflect the committed changes.