diff --git a/src/xfel_calibrate/calibrate.py b/src/xfel_calibrate/calibrate.py
index 8bb0d6357fb1bbf16aa65899334d4b46f576f46c..1eb94a8f636dd9df8ea5e84b0f080120cce30961 100755
--- a/src/xfel_calibrate/calibrate.py
+++ b/src/xfel_calibrate/calibrate.py
@@ -857,7 +857,7 @@ def run(argv=None):
         temp_path=run_tmp_path,
         job_list=joblist,
         sequential=args["no_cluster_job"],
-        partition=args["slurm_partition"] if args["slurm_partition"] else "exfel",  # noqa
+        partition=args["slurm_partition"] or "exfel",
     ))
 
     if any(j is not None for j in joblist):