Database export name should be of type `Pathlib.path`
-
open_database
expects a Pathlib.path
-
self.export.name
is a str
Traceback (most recent call last):
File "/usr/local/bin/worker-generic-training-dataset", line 8, in <module>
sys.exit(main())
^^^^^^
File "/usr/local/lib/python3.11/site-packages/worker_generic_training_dataset/worker.py", line 442, in main
).run()
^^^^^
File "/usr/local/lib/python3.11/site-packages/worker_generic_training_dataset/worker.py", line 371, in run
self.download_latest_export()
File "/usr/local/lib/python3.11/site-packages/worker_generic_training_dataset/worker.py", line 124, in download_latest_export
open_database(self.export.name)
File "/usr/local/lib/python3.11/site-packages/arkindex_export/__init__.py", line 85, in open_database
assert path.exists(), f"SQLite database {path} not found"
^^^^^^^^^^^
AttributeError: 'str' object has no attribute 'exists'