Skip to content
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.

Protect BadIds.py from an empty bad ids file. #481

Merged
merged 2 commits into from
May 18, 2024

Conversation

peterjdolan
Copy link
Contributor

When the bad ids file is empty (which could happen if the process is interrupted at an inopportune moment, then when the process next starts and attempts to read the file, there will be a crash due to accessing the length of a NoneType. safe_load returns None when the content of the file is empty.

peterjdolan and others added 2 commits May 17, 2024 15:28
When the bad ids file is empty (which could happen if the process is interrupted at an inopportune moment, then when the process next starts and attempts to read the file, there will be a crash due to accessing the length of a NoneType. safe_load returns None when the content of the file is empty.
@gilesknap
Copy link
Owner

Thanks for this. I'll make a release.

@gilesknap gilesknap merged commit fc8f0cc into gilesknap:main May 18, 2024
8 of 9 checks passed
truecharts-admin referenced this pull request in truecharts/public May 18, 2024
… v3.2.2@38ecd16 by renovate (#22221)

This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
|
[ghcr.io/gilesknap/gphotos-sync](https://togithub.com/gilesknap/gphotos-sync)
| patch | `3.2.1` -> `3.2.2` |

---

> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency
Dashboard for more information.

---

### Release Notes

<details>
<summary>gilesknap/gphotos-sync
(ghcr.io/gilesknap/gphotos-sync)</summary>

###
[`v3.2.2`](https://togithub.com/gilesknap/gphotos-sync/releases/tag/3.2.2)

[Compare
Source](https://togithub.com/gilesknap/gphotos-sync/compare/3.2.1...3.2.2)

***

#### What's Changed

- tutorial: fix github url by
[@&#8203;sebrem](https://togithub.com/sebrem) in
[https://github.com/gilesknap/gphotos-sync/pull/476](https://togithub.com/gilesknap/gphotos-sync/pull/476)
- Protect BadIds.py from an empty bad ids file. by
[@&#8203;peterjdolan](https://togithub.com/peterjdolan) in
[https://github.com/gilesknap/gphotos-sync/pull/481](https://togithub.com/gilesknap/gphotos-sync/pull/481)
- drop rope folder by
[@&#8203;gilesknap](https://togithub.com/gilesknap) in
[https://github.com/gilesknap/gphotos-sync/pull/482](https://togithub.com/gilesknap/gphotos-sync/pull/482)

#### New Contributors

- [@&#8203;sebrem](https://togithub.com/sebrem) made their first
contribution in
[https://github.com/gilesknap/gphotos-sync/pull/476](https://togithub.com/gilesknap/gphotos-sync/pull/476)
- [@&#8203;peterjdolan](https://togithub.com/peterjdolan) made their
first contribution in
[https://github.com/gilesknap/gphotos-sync/pull/481](https://togithub.com/gilesknap/gphotos-sync/pull/481)

**Full Changelog**:
gilesknap/gphotos-sync@3.2.1...3.2.2

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Renovate
Bot](https://togithub.com/renovatebot/renovate).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zNjguNiIsInVwZGF0ZWRJblZlciI6IjM3LjM2OC42IiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIiwibGFiZWxzIjpbImF1dG9tZXJnZSIsInVwZGF0ZS9kb2NrZXIvZ2VuZXJhbC9ub24tbWFqb3IiXX0=-->
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants