chrisbro / alfred-bear

Alfred 3 workflow to create and search notes in Bear.
335 stars 20 forks source link

[Py3] Ignore missing pidfiles #47

Closed MattHardcastle closed 3 months ago

MattHardcastle commented 3 months ago

The pid file sometimes exists but is empty on my machine. This change resolves the failure by treating an empty pid file like a missing pid file.

I'm not sure why the pid file is missing. It could be a bigger issue.

This PR is part of a collection of changes to support Python3. The collection is broken into multiple stages. This change is part of stage 1 and should be safe to merge at any time.

re: https://github.com/chrisbro/alfred-bear/issues/33