package: Better error handling

This commit is contained in:
Sunil Mohan Adapa committed 2016-02-13 13:52:37 +05:30
1 parent 1f5fa31e53
commit 55cabdaa2e
1 file changed
+1 -1
+1 -1
View File
@@ -88,7 +88,7 @@ class Transaction(object):
try:
self._do_install()
except glib.Error as exception:
raise PackageException(exception.message)
raise PackageException(exception.message) from exception
def _do_install(self):
"""Run a PackageKit transaction to install given packages.