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

[HTCondor-users] Comparing evaluation result with "classad.Value.Error" throws error

Dear htcondor community,


Iâm upgrading my codebase to htcondor v9.0.0 from v8.7.9.

As it is mentioned in this comment[1], comparison of âclassad.Value.Errorâ throws âclassad.ClassAdEvaluationError: Unable to evaluate _expression_.â exception.

What do you suggest to use instead of line-3. Iâm trying to check evaluation result is not a classad.Value.Error.


1. value = ad.eval(key)

2. if isinstance(value, classad.Value):
3.    if value == classad.Value.Error:


Kind regards,

Ceyhun Uzunoglu


[1] https://github.com/htcondor/htcondor/blob/db44d1948122d10b98bf101acfbd67c3f109d8f1/src/condor_tests/test_python_bindings_classad.py#L104