Skip to content

Commit

Permalink
Update datalad/ui/dialog.py
Browse files Browse the repository at this point in the history
Co-authored-by: Yaroslav Halchenko <[email protected]>
  • Loading branch information
christian-monch and yarikoptic authored Apr 17, 2024
1 parent edcb71e commit 0de9234
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion datalad/ui/dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 0de9234

Please sign in to comment.