Hi,

I have no preference on how to fix it.
I intended to stay as close as possible to the code of Marta

Br.

On Wed, Apr 12, 2023 at 1:36 PM Yoann Congal <yoann.con...@smile.fr> wrote:
>
> Hi,
>
> On 4/12/23 12:19, Jan Vermaete wrote:
> > Signed-off-by: Jan Vermaete <jan.verma...@gmail.com>
> > ---
> >  meta/recipes-core/meta/cve-update-nvd2-native.bb | 1 +
> >  1 file changed, 1 insertion(+)
> >
> > diff --git a/meta/recipes-core/meta/cve-update-nvd2-native.bb 
> > b/meta/recipes-core/meta/cve-update-nvd2-native.bb
> > index 1c14481c21..2b585983ac 100644
> > --- a/meta/recipes-core/meta/cve-update-nvd2-native.bb
> > +++ b/meta/recipes-core/meta/cve-update-nvd2-native.bb
> > @@ -118,6 +118,7 @@ def nvd_request_next(url, api_key, args):
> >      import urllib.request
> >      import urllib.parse
> >      import gzip
> > +    import http
>
> If this is only for the "except http.client.IncompleteRead:" line 146[1], 
> wouldn't it be better to fix the catched exception to match what urllib can
>  throw or to remove the except block entirely?
>
> I've triggered the same error as you but chose to remove the except block to 
> get my code running.
>
> [1]: 
> https://git.yoctoproject.org/poky/tree/meta/recipes-core/meta/cve-update-nvd2-native.bb#n146
>
> >
> >      headers = {}
> >      if api_key:
>
> Regards,
> --
> Yoann Congal
> Smile ECS - Tech Expert
>
> 
>


-- 
Jan Vermaete
“Success is a self-correcting phenomenom.” -- Gary Hamel
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#179947): 
https://lists.openembedded.org/g/openembedded-core/message/179947
Mute This Topic: https://lists.openembedded.org/mt/98216121/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to