From-Import-Removal ... someday pisi will have real exceptions.

This commit is contained in:
Faik Uygur
2007-04-27 06:48:52 +00:00
parent 2c4adb142f
commit 095864d7b9
+2 -2
View File
@@ -10,8 +10,8 @@
# Please read the COPYING file.
import os.path
import pisi
import pisi.context as ctx
from pisi import Error
import gettext
__trans = gettext.translation('pisi', fallback=True)
@@ -43,5 +43,5 @@ class Mirrors:
(name, url) = mirror
self._add_mirror(name, url)
else:
raise Error(_('Mirrors file %s does not exist. Could not resolve mirrors://') % config)
raise pisi.Error(_('Mirrors file %s does not exist. Could not resolve mirrors://') % config)