aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'pomu/source')
-rw-r--r--pomu/source/manager.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pomu/source/manager.py b/pomu/source/manager.py
index b91bdd0..600a987 100644
--- a/pomu/source/manager.py
+++ b/pomu/source/manager.py
@@ -83,8 +83,8 @@ class PackageDispatcher():
"""Get a source which accepts the package"""
for priority, source, handler in self.handlers:
if handler(uri).is_ok():
- return source
- return None
+ return Result.Ok(source)
+ return Result.Err('No handler found for package ' + uri)
def get_package(self, uri):
"""Fetch a package specified by the descriptor"""