aptly-io / pwsync

Synchronize between password database (Keepass and Bitwarden)
GNU General Public License v3.0
7 stars 1 forks source link

Rendering issue on the console #16

Open aptly-io opened 1 year ago

aptly-io commented 1 year ago

Likely cause by special characters in the note

    5. pancake-ID pancake@gmail.com, 
      add name            : pancake@gmail.com
      add secret          : *******
Traceback (most recent call last):
  File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/users/u1/pwsync/pwsync/main.py", line 244, in <module>
    main()
  File "/users/u1/pwsync/pwsync/main.py", line 240, in main
    console_sync(query_info, syncer, run_options, to_dataset)
  File "/users/u1/pwsync/pwsync/console.py", line 279, in console_sync
    _sync_section("create", query_info, syncer, run_options, to_dataset)
  File "/users/u1/pwsync/pwsync/console.py", line 253, in _sync_section
    section_folder = _print_ft_element(
  File "/users/u1/pwsync/pwsync/console.py", line 139, in _print_ft_element
    print_ft(HTML(f"      <info>new {prop:<16}: </info>{_offset_ft(28, new_value).lstrip()}"), style=STYLE)
  File "/users/u1/pwsync/.venv/lib/python3.8/site-packages/prompt_toolkit/formatted_text/html.py", line 35, in __init__
    document = minidom.parseString(f"<html-root>{value}</html-root>")
  File "/usr/lib/python3.8/xml/dom/minidom.py", line 1969, in parseString
    return expatbuilder.parseString(string)
  File "/usr/lib/python3.8/xml/dom/expatbuilder.py", line 925, in parseString
    return builder.parseString(string)
  File "/usr/lib/python3.8/xml/dom/expatbuilder.py", line 223, in parseString
    parser.Parse(string, True)
xml.parsers.expat.ExpatError: not well-formed (invalid token): line 11, column 49