Do not report questions from borg as errors. draft

Mon, 02 Jun 2025 23:02:42 -0500

author
Tuomo Valkonen <tuomov@iki.fi>
date
Mon, 02 Jun 2025 23:02:42 -0500
changeset 151
41adab2ef3f1
parent 150
f94987ced25e
child 152
52362f545be1

Do not report questions from borg as errors.

Lack of answer should result in a separate error afterwards.

borgend/backup.py file | annotate | diff | comparison | revisions
--- a/borgend/backup.py	Mon Jun 02 15:50:05 2025 -0500
+++ b/borgend/backup.py	Mon Jun 02 23:02:42 2025 -0500
@@ -368,9 +368,9 @@
                         status, callback=self.__status_unlocked()
 
             elif t=='question_prompt' or t=='question_prompt_retry':
-                self.logger.error('Did not expect to receive question prompt from borg')
-                with self._cond:
-                    self.current_operation.add_error(Errors.ERRORS)
+                self.logger.warn('Did not expect to receive question prompt from borg (%s)' % msg)
+                #with self._cond:
+                #    self.current_operation.add_error(Errors.ERRORS)
                 # TODO: terminate org? Send 'NO' reply?
 
             elif (t=='question_invalid_answer' or t=='question_accepted_default'

mercurial