From 63691a36377e245ef9fdf147685b25c60f6843ed Mon Sep 17 00:00:00 2001 From: Ivan Habunek Date: Mon, 11 Dec 2023 13:59:05 +0100 Subject: [PATCH] Allow editor when not in tty I was told there are legitimate use cases I was not aware of. --- toot/cli/post.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/toot/cli/post.py b/toot/cli/post.py index 138faf4..fa5b578 100644 --- a/toot/cli/post.py +++ b/toot/cli/post.py @@ -130,9 +130,6 @@ def post( json: bool ): """Post a new status""" - if editor and not sys.stdin.isatty(): - raise click.ClickException("Cannot run editor if not in tty.") - if len(media) > 4: raise click.ClickException("Cannot attach more than 4 files.")