Project

General

Profile

Bug #24370

Python None Type Comparison

Added by Sakshi Nag 2 months ago.

Status:
New
Priority:
Normal
Assignee:
Category:
Python Client Module
Target version:
-
Start date:
05/01/2020
Due date:
% Done:

0%

Estimated time:
Duration:

Description

When comparing acnet objects to None type, we get an error because None type does not have a value.

Error: 'NoneType' object has no attribute 'value'

data_done = [None] * len(devicelist)
data_done[event_response.tag] = event_response.status        
if data_done.count(None) == 0:     #Line that gives the error. 


Also available in: Atom PDF