Skip to content

Error when launched from a non-existent directory #195

@mohd-akram

Description

@mohd-akram

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 <module>
    from ntfy.cli import main
  File "/Users/mohamed/Library/Python/3.7/lib/python/site-packages/ntfy/__init__.py", line 12, in <module>
    _cwd = getcwd()
FileNotFoundError: [Errno 2] No such file or directory

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions