summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/policy.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/policy.cc b/python/policy.cc
index b7e648b5..96b83abd 100644
--- a/python/policy.cc
+++ b/python/policy.cc
@@ -50,7 +50,7 @@ PyObject *policy_get_priority(PyObject *self, PyObject *arg) {
pkgCache::PkgFileIterator pkgfile = GetCpp<pkgCache::PkgFileIterator>(arg);
return MkPyNumber(policy->GetPriority(pkgfile));
} else {
- PyErr_SetString(PyExc_TypeError,"Argument must be of Package().");
+ PyErr_SetString(PyExc_TypeError,"Argument must be of Package() or PackageFile().");
return 0;
}
}