From 38165cbeb26313bb468dcf527a843ba55571a8f2 Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Mon, 30 Jan 2012 15:39:42 +0100 Subject: REFACTOR: python/policy.cc update error to include PackageFile() too --- python/policy.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python') 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(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; } } -- cgit v1.2.3