diff --git a/src/script/Monitor/GenerateMONIT.py b/src/script/Monitor/GenerateMONIT.py index e574810e03..96f65e1c8c 100644 --- a/src/script/Monitor/GenerateMONIT.py +++ b/src/script/Monitor/GenerateMONIT.py @@ -287,9 +287,10 @@ def execute(self): # if one schedd does not answer, go on and try the others try: scheddAdd = self.coll.locate(htcondor.DaemonTypes.Schedd, scheddName) - except Exception: + schedd = htcondor.Schedd(scheddAdd) + except Exception as e: + print(f"faild to contact {scheddName}:\n{e}") continue - schedd = htcondor.Schedd(scheddAdd) try: idleDags = schedd.query(pickSchedulerIdle) except Exception: