aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMykyta Holubakha <hilobakho@gmail.com>2017-06-30 03:47:13 +0300
committerMykyta Holubakha <hilobakho@gmail.com>2017-06-30 03:47:13 +0300
commite34c5f770cc3bc48db7a4d62583e6ac738a48575 (patch)
treef3c5c6f8509cb0350c889b0398c09e112c24571e /pomu/source
parentAdded README (diff)
downloadpomu-e34c5f770cc3bc48db7a4d62583e6ac738a48575.tar.gz
pomu-e34c5f770cc3bc48db7a4d62583e6ac738a48575.tar.bz2
pomu-e34c5f770cc3bc48db7a4d62583e6ac738a48575.zip
Fix unit tests
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"""