[INFO] papis_zotero.sql: [ 0/199 ] Exporting item 'A9AW7P8Z' with ref 'DeclarationDoRatzin2000' to folder '/home/matej/Dokumenty/clanky/bibliography/A9AW7P8Z'.
[ERROR] papis_zotero.sql: Failed to parse date.
┆ Traceback (most recent call last):
┆ File "/home/matej/.local/lib/python3.11/site-packages/papis_zotero/sql.py", line 63, in get_fields
┆ d = datetime.strptime(date.split(" ")[0][:-3], "%Y-%m")
┆ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
┆ File "/usr/lib64/python3.11/_strptime.py", line 568, in _strptime_datetime
┆ tt, fraction, gmtoff_fraction = _strptime(data_string, format)
┆ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
┆ File "/usr/lib64/python3.11/_strptime.py", line 349, in _strptime
┆ raise ValueError("time data %r does not match format %r" %
┆ ValueError: time data '2011-00' does not match format '%Y-%m'
[DEBUG] bibtex: Generated ref 'Tomáš Halík: sm Halík, '.
Couldn’t the module somehow recognize that date matching the regular expression \d+ won’t be matched by the strptime format %Y-%m?
I have plenty of records, where the date is just a year, for example this one:
When trying to import I get this on the stderr:
Couldn’t the module somehow recognize that date matching the regular expression
\d+
won’t be matched by thestrptime
format%Y-%m
?Using papis-zotero 0.1.2 from PyPI.