From 0de9234c99e54cb4bff75275382e6e001ad0bd8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20M=C3=B6nch?= Date: Wed, 17 Apr 2024 21:49:45 +0200 Subject: [PATCH] Update datalad/ui/dialog.py Co-authored-by: Yaroslav Halchenko --- datalad/ui/dialog.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/datalad/ui/dialog.py b/datalad/ui/dialog.py index 34b8ccc757..c181b71343 100644 --- a/datalad/ui/dialog.py +++ b/datalad/ui/dialog.py @@ -372,7 +372,8 @@ def question(self, hidden=False, repeat=None): if not can_prompt(): - # we are not interactive + # need to do a more specific that `is_interactive` check, since `is_interactive` checks + # all streams including stdin/out which are to "talk" to git-annex, and thus not tty. raise RuntimeError('A terminal required for interactive input in annex remotes') return super(UnderAnnexUI, self).question( text,