Allow editor when not in tty

I was told there are legitimate use cases I was not aware of.
pull/444/head
Ivan Habunek 2023-12-11 13:59:05 +01:00
rodzic 0f4f0b3863
commit 63691a3637
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: F5F0623FF5EBCB3D
1 zmienionych plików z 0 dodań i 3 usunięć

Wyświetl plik

@ -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.")