From-Import-Removal ... someday pisi will have real exceptions.
This commit is contained in:
+2
-2
@@ -10,8 +10,8 @@
|
|||||||
# Please read the COPYING file.
|
# Please read the COPYING file.
|
||||||
|
|
||||||
import os.path
|
import os.path
|
||||||
|
import pisi
|
||||||
import pisi.context as ctx
|
import pisi.context as ctx
|
||||||
from pisi import Error
|
|
||||||
|
|
||||||
import gettext
|
import gettext
|
||||||
__trans = gettext.translation('pisi', fallback=True)
|
__trans = gettext.translation('pisi', fallback=True)
|
||||||
@@ -43,5 +43,5 @@ class Mirrors:
|
|||||||
(name, url) = mirror
|
(name, url) = mirror
|
||||||
self._add_mirror(name, url)
|
self._add_mirror(name, url)
|
||||||
else:
|
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)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user