]> Nutra Git (v1) - gamesguru/ffpass.git/commit
Fix panic/error raised by deleted passwords. (#71) base
authorShane Jaroch <chown_tee@proton.me>
Thu, 20 Mar 2025 18:58:40 +0000 (14:58 -0400)
committerGitHub <noreply@github.com>
Thu, 20 Mar 2025 18:58:40 +0000 (19:58 +0100)
commitb6efa114ca04ede0822eaf9800f0e19a805d388d
tree9d47cf36dd7641917fcfa2d0b3fd6b316f597720
parentfd7180c5c82d8efce283fdad32d93288c530bef7
Fix panic/error raised by deleted passwords. (#71)

* Fix panic/error raised by deleted passwords.

consider the following row entry,

```json
{"id": 513, "guid": "{6a83e72d-8255-4bc0-ad1a-c292613fb55b}", "timePasswordChanged": 1740354999123, "syncCounter": 0, "everSynced": true, "deleted": true}
```

which leads to:

```text
Traceback (most recent call last):
  File "ffpass", line 8, in <module>
    sys.exit(main())
  File "ffpass/__init__.py", line 419, in main
    args.func(args)
  File "ffpass/__init__.py", line 322, in main_export
    logins = exportLogins(key, jsonLogins)
  File "ffpass/__init__.py", line 212, in exportLogins
    encUsername = row["encryptedUsername"]
KeyError: 'encryptedUsername'
```

NOTE: line numbers from a `pip install ffpass`, version: `ffpass-0.5.0`

* update workflow to use `upload-artifact@v4`

also:

- actions/checkout@v4
- actions/setup-python@v5

* update EnricoMi/publish-unit-test-result-action@v2

---------

Co-authored-by: Louis Abraham <louisabraham@users.noreply.github.com>
.github/workflows/testing.yaml
ffpass/__init__.py