Prechádzať zdrojové kódy

Fixed the fix to the error in btr downloading script (trying to unlock files not yet known to datalad)

Johannes Gütschow 2 mesiacov pred
rodič
commit
7f040484ad

+ 1 - 1
src/unfccc_ghg_data/unfccc_downloader/download_btr.py

@@ -164,7 +164,7 @@ if __name__ == "__main__":
                         # name (updated) as older zip files
                         # as we can't unlock files which have just been added we catch
                         # and discard exceptions
-                        for file in local_filename.parent.glob():
+                        for file in local_filename.parent.glob("*"):
                             try:
                                 dlds.unlock(file)
                             except Exception:  # noqa: S110