[bitbake-devel] [PATCH] fetch2/ccrc: import required error classes
CHerzig at Gauselmann.de
CHerzig at Gauselmann.de
Tue Jul 16 12:39:58 UTC 2019
Signed-off-by: Christian Herzig <cherzig at gauselmann.de>
---
bitbake/lib/bb/fetch2/clearcase.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/bitbake/lib/bb/fetch2/clearcase.py
b/bitbake/lib/bb/fetch2/clearcase.py
index 09c9d0c33c..a276144426 100644
--- a/bitbake/lib/bb/fetch2/clearcase.py
+++ b/bitbake/lib/bb/fetch2/clearcase.py
@@ -56,6 +56,8 @@ import shutil
import bb
from bb.fetch2 import FetchMethod
from bb.fetch2 import FetchError
+from bb.fetch2 import MissingParameterError
+from bb.fetch2 import ParameterError
from bb.fetch2 import runfetchcmd
from bb.fetch2 import logger
@@ -81,7 +83,7 @@ class ClearCase(FetchMethod):
if 'protocol' in ud.parm:
ud.proto = ud.parm['protocol']
if not ud.proto in ('http', 'https'):
- raise fetch2.ParameterError("Invalid protocol type", ud.url)
+ raise ParameterError("Invalid protocol type", ud.url)
ud.vob = ''
if 'vob' in ud.parm:
--
2.17.1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/bitbake-devel/attachments/20190716/b1552968/attachment.html>
More information about the bitbake-devel
mailing list