diff --git a/frappe/commands/site.py b/frappe/commands/site.py index 55287d647c..9c13d085f5 100644 --- a/frappe/commands/site.py +++ b/frappe/commands/site.py @@ -100,7 +100,7 @@ def new_site( use(site) except Exception: - if click.confirm("Do you want to rollback the failed site?", abort=True): + if sys.__stdin__.isatty() and click.confirm("Do you want to rollback the failed site?", abort=True): rollback_callback.run()