Skip to content

Commit 0de9234

Browse files
Update datalad/ui/dialog.py
Co-authored-by: Yaroslav Halchenko <debian@onerussian.com>
1 parent edcb71e commit 0de9234

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

datalad/ui/dialog.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,8 @@ def question(self,
372372
hidden=False,
373373
repeat=None):
374374
if not can_prompt():
375-
# we are not interactive
375+
# need to do a more specific that `is_interactive` check, since `is_interactive` checks
376+
# all streams including stdin/out which are to "talk" to git-annex, and thus not tty.
376377
raise RuntimeError('A terminal required for interactive input in annex remotes')
377378
return super(UnderAnnexUI, self).question(
378379
text,

0 commit comments

Comments
 (0)