summaryrefslogtreecommitdiff
path: root/apt/debfile.py
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2011-11-22 18:06:30 +0100
committerMichael Vogt <michael.vogt@ubuntu.com>2011-11-22 18:06:30 +0100
commit0af443d9a182b0fec5f9963edef3c1f1908e831f (patch)
treed1737262ff2d24efe7ace6e03d410e6058ca33ab /apt/debfile.py
parentb7b608bf2c66e7466313ea02568348aea9cc29ba (diff)
downloadpython-apt-0af443d9a182b0fec5f9963edef3c1f1908e831f.tar.gz
cleanup
Diffstat (limited to 'apt/debfile.py')
-rw-r--r--apt/debfile.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/apt/debfile.py b/apt/debfile.py
index 5b9274b2..277262d7 100644
--- a/apt/debfile.py
+++ b/apt/debfile.py
@@ -477,7 +477,7 @@ class DebPackage(object):
"""Return missing dependencies."""
self._dbg(1, "Installing: %s" % self._need_pkgs)
if not self._check_was_run:
- raise ValueError("property only available after check() was run")
+ raise AttributeError("property only available after check() was run")
return self._need_pkgs
@property
@@ -490,7 +490,7 @@ class DebPackage(object):
remove = []
unauthenticated = []
if not self._check_was_run:
- raise ValueError("property only available after check() was run")
+ raise AttributeError("property only available after check() was run")
for pkg in self._cache:
if pkg.marked_install or pkg.marked_upgrade:
install.append(pkg.name)