dschep / dschep/ntfy

Error when launched from a non-existent directory

Open
#195 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
5k
Forks
216
PR merge metrics
No merged PRs in 30d

Description

Example:

```
$ mkdir foo
$ cd foo
$ rmdir ../foo
```

Running `ntfy send message` or, more annoyingly when shell integration is enabled, just pressing Enter, causes this:

```
Traceback (most recent call last):
File "/Users/mohamed/Library/Python/3.7/bin/ntfy", line 6, in
from ntfy.cli import main
File "/Users/mohamed/Library/Python/3.7/lib/python/site-packages/ntfy/__init__.py", line 12, in
_cwd = getcwd()
FileNotFoundError: [Errno 2] No such file or directory
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.