diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2011-11-22 18:06:30 +0100 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2011-11-22 18:06:30 +0100 |
| commit | 0af443d9a182b0fec5f9963edef3c1f1908e831f (patch) | |
| tree | d1737262ff2d24efe7ace6e03d410e6058ca33ab /apt/debfile.py | |
| parent | b7b608bf2c66e7466313ea02568348aea9cc29ba (diff) | |
| download | python-apt-0af443d9a182b0fec5f9963edef3c1f1908e831f.tar.gz | |
cleanup
Diffstat (limited to 'apt/debfile.py')
| -rw-r--r-- | apt/debfile.py | 4 |
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) |
