Skip to contentSkip to conversation

fetch/svn: fix typo in the svn:externals error handler

PATCH New WXbet 1 participant 1 message Sep 20

lore
Share & tools
lore

WXbet

author
#0 lore raw

PATCH 1/1 fetch/svn: fix typo in the svn:externals error handler

From: WXbet <[email protected]>

The except branch swallowing a failed "svn propget svn:externals" call reads "passs". Python parses that as a name, so the handler raises a NameError instead of ignoring the error, and the original FetchError is lost. Introduced in 58097a59f ("fetch/svn: Convert to use lists of command arguments").

---
 lib/bb/fetch/svn.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/bb/fetch/svn.py +1 -1
index 73ce83f..5d57793 100644
@@ -165,7 +165,7 @@ class Svn(FetchMethod):
                         else:
                             bb.debug(1, "svn repository has externals:\n%s" % output)
                 except bb.fetch.FetchError:
-                    passs
+                    pass
             scmdata = ud.parm.get("scmdata", "")
             if scmdata == "keep":
                 tar_flags = []
Signature · 1 line
2.47.1.windows.1