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,