[damned-lies] Replace needs a string, not a Path



commit 708e99089d28ed55b87bb5ccddc1076e163dcf36
Author: Claude Paroz <claude 2xlibre net>
Date:   Fri Mar 19 23:34:05 2021 +0100

    Replace needs a string, not a Path

 stats/utils.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/stats/utils.py b/stats/utils.py
index 0b8224a1..9550daf0 100644
--- a/stats/utils.py
+++ b/stats/utils.py
@@ -451,7 +451,7 @@ def generate_doc_pot_file(branch, domain):
             "error",
             gettext_noop("Error regenerating POT file for document 
%(file)s:\n<pre>%(cmd)s\n%(output)s</pre>") % {
                 'file': potbase,
-                'cmd': " ".join([c.replace(settings.SCRATCHDIR, "&lt;scratchdir&gt;") for c in command]),
+                'cmd': " ".join([c.replace(str(settings.SCRATCHDIR), "&lt;scratchdir&gt;") for c in 
command]),
                 'output': errs
             })]
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]