diff --git a/modules/mol/alg/pymod/ligand_scoring.py b/modules/mol/alg/pymod/ligand_scoring.py
index 85d0af427016c67000a9535aaf0f18b43331109c..68f9b581d82ee3998d732604da298aa867a9b71d 100644
--- a/modules/mol/alg/pymod/ligand_scoring.py
+++ b/modules/mol/alg/pymod/ligand_scoring.py
@@ -209,7 +209,8 @@ class LigandScorer:
             else:
                 raise RuntimeError("Ligands should be given as Entity or Residue")
 
-        new_editor.UpdateICS()
+        if new_editor is not None:
+            new_editor.UpdateICS()
         return extracted_ligands