12 Dec 2023 05:57 AM - last edited on 12 Dec 2023 08:40 AM by MaciejNeumann
When I extended monitoring using the Powershell SDK monitoring mode, the following error was reported:
Python datasource initialization error: Exception("Could not run a test powershell script: 'NoneType' object has no attribute 'stderr'"),
How do I fix it? thank you.
Solved! Go to Solution.
12 Dec 2023 07:54 AM
Ref from external site
If code is written like this
def get_shape_of_object(obj): return obj.shape value = None print(get_shape_of_object(value))
should fix into below example
def get_shape_of_object(obj): if obj is None: return None return obj.shape value = None print(get_shape_of_object(value))
How to Fix AttributeError: 'NoneType' object has no attribute 'shape' (appdividend.com)
How to Fix the 'NoneType' object has no attribute: 'text' Error in Python - Nsikak Imoh
Cheers!
RN