-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve: qdt files reliability (#514)
This PR improve qdt-files.json (HTTP handler) parsing reliability handling cases where `qdt-files.json` generated with tree without the `--prune` option and containing empty folders makes crash the reader. ```python 2024-05-29 09:50:42||ERROR||bouncer||exit_cli_error||43||'NoneType' object is not iterable Traceback (most recent call last): File "qgis_deployment_toolbelt/commands/deployment.py", line 205, in run File "qgis_deployment_toolbelt/jobs/job_profiles_downloader.py", line 130, in run File "qgis_deployment_toolbelt/profiles/remote_http_handler.py", line 120, in download File "qgis_deployment_toolbelt/profiles/remote_http_handler.py", line 158, in tree_to_download_list File "qgis_deployment_toolbelt/profiles/remote_http_handler.py", line 158, in tree_to_download_list File "qgis_deployment_toolbelt/profiles/remote_http_handler.py", line 150, in tree_to_download_list TypeError: 'NoneType' object is not iterable 2024-05-29 09:50:42||ERROR||bouncer||exit_cli_error||44||Please, read the full detailed log: /home/florian.bocquet/.cache/qgis-deployment-toolbelt/logs/QGISDeploymentToolbelt_0.34.2.log 'NoneType' object is not iterable ``` Spotted by @Niarolf
- Loading branch information
Showing
9 changed files
with
13,173 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,199 @@ | ||
[ | ||
{"type":"directory","name":".","size":4096,"time":"2023-12-29T11:03:36CET","contents":[ | ||
{"type":"directory","name":"profiles","size":4096,"time":"2023-12-22T16:14:45CET","contents":[ | ||
{"type":"directory","name":"demo","size":4096,"time":"2023-12-22T16:14:45CET","contents":[ | ||
{"type":"file","name":"bookmarks.xml","size":1582,"time":"2023-11-14T17:43:43CET"}, | ||
{"type":"directory","name":"images","size":4096,"time":"2023-06-13T17:02:08CEST","contents":[ | ||
{"type":"file","name":"logo_qdt.ico","size":227102,"time":"2023-06-13T17:02:08CEST"}, | ||
{"type":"file","name":"splash.png","size":354451,"time":"2023-06-13T17:02:08CEST"} | ||
]}, | ||
{"type":"file","name":"profile.json","size":594,"time":"2023-06-13T17:02:08CEST"}, | ||
{"type":"directory","name":"QGIS","size":4096,"time":"2023-11-15T11:05:26CET","contents":[ | ||
{"type":"file","name":"QGIS3.ini","size":10605,"time":"2023-11-15T11:05:26CET"}, | ||
{"type":"file","name":"QGISCUSTOMIZATION3.ini","size":144530,"time":"2023-11-14T08:47:47CET"} | ||
]} | ||
]}, | ||
{"type":"file","name":"profiles.ini","size":34,"time":"2023-12-22T16:14:45CET"}, | ||
{"type":"directory","name":"Viewer Mode","size":4096,"time":"2023-12-29T10:13:27CET","contents":[ | ||
{"type":"file","name":"bookmarks.xml","size":1582,"time":"2023-12-22T16:14:45CET"}, | ||
{"type":"directory","name":"images","size":4096,"time":"2023-12-22T16:14:45CET","contents":[ | ||
{"type":"file","name":"logo_qdt.ico","size":227102,"time":"2023-12-22T16:14:45CET"}, | ||
{"type":"file","name":"splash.png","size":211808,"time":"2023-12-22T16:14:45CET"} | ||
]}, | ||
{"type":"file","name":"profile.json","size":1481,"time":"2023-12-22T16:14:45CET"}, | ||
{"type":"file","name":"project_default_attachments.zip","size":1125,"time":"2023-12-22T16:14:45CET"}, | ||
{"type":"file","name":"project_default.qgs","size":80961,"time":"2023-12-22T16:14:45CET"}, | ||
{"type":"directory","name":"QGIS","size":4096,"time":"2023-12-22T16:14:45CET","contents":[ | ||
{"type":"file","name":"QGIS3.ini","size":119124,"time":"2023-12-22T16:14:45CET"}, | ||
{"type":"file","name":"QGISCUSTOMIZATION3.ini","size":144627,"time":"2023-12-22T16:14:45CET"} | ||
]}, | ||
{"type":"file","name":"startup_project.qgz","size":13321,"time":"2023-12-22T16:14:45CET"} | ||
]} | ||
]}, | ||
{"type":"file","name":"qdt-files.json","size":0,"time":"2023-12-29T11:05:41CET"}, | ||
{"type":"file","name":"README.md","size":1139,"time":"2023-12-22T16:14:45CET"}, | ||
{"type":"directory","name":"scenarios","size":4096,"time":"2023-12-29T10:09:25CET","contents":[ | ||
{"type":"file","name":"demo-scenario-http.qdt.yml","size":1441,"time":"2023-12-29T11:04:38CET"}, | ||
{"type":"file","name":"demo-scenario.qdt.yml","size":1540,"time":"2023-12-22T20:07:44CET"} | ||
]} | ||
]} | ||
, | ||
{"type":"report","directories":8,"files":20} | ||
{ | ||
"type": "directory", | ||
"name": ".", | ||
"size": 4096, | ||
"time": "2023-12-29T11:03:36CET", | ||
"contents": [ | ||
{ | ||
"type": "directory", | ||
"name": "profiles", | ||
"size": 4096, | ||
"time": "2023-12-22T16:14:45CET", | ||
"contents": [ | ||
{ | ||
"type": "directory", | ||
"name": "demo", | ||
"size": 4096, | ||
"time": "2023-12-22T16:14:45CET", | ||
"contents": [ | ||
{ | ||
"type": "file", | ||
"name": "bookmarks.xml", | ||
"size": 1582, | ||
"time": "2023-11-14T17:43:43CET" | ||
}, | ||
{ | ||
"type": "directory", | ||
"name": "images", | ||
"size": 4096, | ||
"time": "2023-06-13T17:02:08CEST", | ||
"contents": [ | ||
{ | ||
"type": "file", | ||
"name": "logo_qdt.ico", | ||
"size": 227102, | ||
"time": "2023-06-13T17:02:08CEST" | ||
}, | ||
{ | ||
"type": "file", | ||
"name": "splash.png", | ||
"size": 354451, | ||
"time": "2023-06-13T17:02:08CEST" | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "file", | ||
"name": "profile.json", | ||
"size": 594, | ||
"time": "2023-06-13T17:02:08CEST" | ||
}, | ||
{ | ||
"type": "directory", | ||
"name": "QGIS", | ||
"size": 4096, | ||
"time": "2023-11-15T11:05:26CET", | ||
"contents": [ | ||
{ | ||
"type": "file", | ||
"name": "QGIS3.ini", | ||
"size": 10605, | ||
"time": "2023-11-15T11:05:26CET" | ||
}, | ||
{ | ||
"type": "file", | ||
"name": "QGISCUSTOMIZATION3.ini", | ||
"size": 144530, | ||
"time": "2023-11-14T08:47:47CET" | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "file", | ||
"name": "profiles.ini", | ||
"size": 34, | ||
"time": "2023-12-22T16:14:45CET" | ||
}, | ||
{ | ||
"type": "directory", | ||
"name": "Viewer Mode", | ||
"size": 4096, | ||
"time": "2023-12-29T10:13:27CET", | ||
"contents": [ | ||
{ | ||
"type": "file", | ||
"name": "bookmarks.xml", | ||
"size": 1582, | ||
"time": "2023-12-22T16:14:45CET" | ||
}, | ||
{ | ||
"type": "directory", | ||
"name": "images", | ||
"size": 4096, | ||
"time": "2023-12-22T16:14:45CET", | ||
"contents": [ | ||
{ | ||
"type": "file", | ||
"name": "logo_qdt.ico", | ||
"size": 227102, | ||
"time": "2023-12-22T16:14:45CET" | ||
}, | ||
{ | ||
"type": "file", | ||
"name": "splash.png", | ||
"size": 211808, | ||
"time": "2023-12-22T16:14:45CET" | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "file", | ||
"name": "profile.json", | ||
"size": 1481, | ||
"time": "2023-12-22T16:14:45CET" | ||
}, | ||
{ | ||
"type": "file", | ||
"name": "project_default_attachments.zip", | ||
"size": 1125, | ||
"time": "2023-12-22T16:14:45CET" | ||
}, | ||
{ | ||
"type": "file", | ||
"name": "project_default.qgs", | ||
"size": 80961, | ||
"time": "2023-12-22T16:14:45CET" | ||
}, | ||
{ | ||
"type": "directory", | ||
"name": "QGIS", | ||
"size": 4096, | ||
"time": "2023-12-22T16:14:45CET", | ||
"contents": [ | ||
{ | ||
"type": "file", | ||
"name": "QGIS3.ini", | ||
"size": 119124, | ||
"time": "2023-12-22T16:14:45CET" | ||
}, | ||
{ | ||
"type": "file", | ||
"name": "QGISCUSTOMIZATION3.ini", | ||
"size": 144627, | ||
"time": "2023-12-22T16:14:45CET" | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "file", | ||
"name": "startup_project.qgz", | ||
"size": 13321, | ||
"time": "2023-12-22T16:14:45CET" | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "file", | ||
"name": "qdt-files.json", | ||
"size": 0, | ||
"time": "2023-12-29T11:05:41CET" | ||
}, | ||
{ | ||
"type": "file", | ||
"name": "README.md", | ||
"size": 1139, | ||
"time": "2023-12-22T16:14:45CET" | ||
}, | ||
{ | ||
"type": "directory", | ||
"name": "scenarios", | ||
"size": 4096, | ||
"time": "2023-12-29T10:09:25CET", | ||
"contents": [ | ||
{ | ||
"type": "file", | ||
"name": "demo-scenario-http.qdt.yml", | ||
"size": 1441, | ||
"time": "2023-12-29T11:04:38CET" | ||
}, | ||
{ | ||
"type": "file", | ||
"name": "demo-scenario.qdt.yml", | ||
"size": 1540, | ||
"time": "2023-12-22T20:07:44CET" | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "report", | ||
"directories": 8, | ||
"files": 20 | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.