From 3210a768ef56cee5f2aaac44f52fa8e6352fbc94 Mon Sep 17 00:00:00 2001 From: Torsten Werner Date: Wed, 10 Aug 2011 10:04:21 +0200 Subject: [PATCH] fix last commit: return [] instead of None Signed-off-by: Torsten Werner --- daklib/dbconn.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/daklib/dbconn.py b/daklib/dbconn.py index 85052f63..f2dca8fa 100755 --- a/daklib/dbconn.py +++ b/daklib/dbconn.py @@ -3008,8 +3008,8 @@ __all__.append('get_suite') @session_wrapper def get_suite_architectures(suite, skipsrc=False, skipall=False, session=None): """ - Returns list of Architecture objects for given C{suite} name or None if - suite does not exist + Returns list of Architecture objects for given C{suite} name. The list is + empty if suite does not exist. @type suite: str @param suite: Suite name to search for @@ -3033,7 +3033,7 @@ def get_suite_architectures(suite, skipsrc=False, skipall=False, session=None): try: return get_suite(suite, session).get_architectures(skipsrc, skipall) except AttributeError: - return None + return [] __all__.append('get_suite_architectures') -- 2.39.5