Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug found (minor) #29

Open
davidmichea opened this issue Oct 12, 2017 · 1 comment
Open

Bug found (minor) #29

davidmichea opened this issue Oct 12, 2017 · 1 comment

Comments

@davidmichea
Copy link

davidmichea commented Oct 12, 2017

Salut,

ligne 283 dans Sentinel_download.py:
ident=prod.getElementsByTagName("id")[0].firstChild.data
dead code: ident n'est jamais utilisé, qui plus est, ça génère une erreur :

ident=prod.getElementsByTagName("id")[0].firstChild.data
AttributeError: 'NoneType' object has no attribute 'data'

En effet, il semblerait que le champ id n'ait pas toujours de fils, du moins dans l'exemple suivant:
(extrait de query_results.xml)

... <entry> <title>S2A_MSIL1C_20171004T153621_N0205_R068_T18QWF_20171004T153616</title> <link href="https://scihub.copernicus.eu/apihub/odata/v1/Products('b74bc209-b6a7-4161-8862-16103f49ed2d')/$value"/> <link href="https://scihub.copernicus.eu/apihub/odata/v1/Products('b74bc209-b6a7-4161-8862-16103f49ed2d')/" rel="alternative"/> <link href="https://scihub.copernicus.eu/apihub/odata/v1/Products('b74bc209-b6a7-4161-8862-16103f49ed2d')/Products('Quicklook')/$value" rel="icon"/> <id>b74bc209-b6a7-4161-8862-16103f49ed2d</id> ...
Commenter la ligne suffit à empêcher que ça replante.

Cordialement

@olivierhagolle
Copy link
Owner

Effectivement. Merci !
Olivier

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants