From: Torsten Werner Date: Wed, 10 Aug 2011 08:04:21 +0000 (+0200) Subject: fix last commit: return [] instead of None X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=3210a768ef56cee5f2aaac44f52fa8e6352fbc94;p=dak.git fix last commit: return [] instead of None Signed-off-by: Torsten Werner --- 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')