From 8a109ab3445b72da3f3b5b2c12cd9603f72f96f2 Mon Sep 17 00:00:00 2001
From: Thomas Kluyver <thomas@kluyver.me.uk>
Date: Thu, 30 Jun 2022 15:07:41 +0100
Subject: [PATCH] Convert Path to str() for command arguments

---
 webservice/webservice.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/webservice/webservice.py b/webservice/webservice.py
index b755d9b70..b9a2050f3 100644
--- a/webservice/webservice.py
+++ b/webservice/webservice.py
@@ -1001,7 +1001,7 @@ class ActionsServer:
 
                 logging.info("Repeating correction for %s from %s", karabo_id, mddir)
 
-                cmd = ['python', '-m', 'xfel_calibrate.repeat', mddir,
+                cmd = ['python', '-m', 'xfel_calibrate.repeat', str(mddir),
                        '--env-cache', '/scratch/xcal/repeat-envs']
 
                 with self.job_db:
-- 
GitLab