2
0
Эх сурвалжийг харах

Fix for a potential traceback (TypeError) during the handling of another error.

Dan Helfman 1 жил өмнө
parent
commit
d44dc93509

+ 2 - 1
NEWS

@@ -1,5 +1,6 @@
 1.8.14.dev0
- * #896: Fix error in borgmatic rcreate/init on empty repository directory with Borg 1.4.
+ * #896: Fix an error in borgmatic rcreate/init on an empty repository directory with Borg 1.4.
+ * Fix for a potential traceback (TypeError) during the handling of another error.
  * Add a recent contributors section to the documentation, because credit where credit's due! See:
    https://torsion.org/borgmatic/#recent-contributors
 

+ 1 - 1
borgmatic/commands/borgmatic.py

@@ -579,7 +579,7 @@ def load_configurations(config_filenames, overrides=None, resolve_env=True):
                         )
                     ),
                     logging.makeLogRecord(
-                        dict(levelno=logging.CRITICAL, levelname='CRITICAL', msg=error)
+                        dict(levelno=logging.CRITICAL, levelname='CRITICAL', msg=str(error))
                     ),
                 ]
             )