Skip to content

AttributeError: 'NoneType' object has no attribute 'is_open' #4

@AIT-tommy

Description

@AIT-tommy

In SerialCommands.py having an issue with this function:

def get_data(self):
if not self.serial.is_open:
return None
else:
return self.serial.readline().decode('utf-8').split(',')

getting this error:

AttributeError: 'NoneType' object has no attribute 'is_open'

NoneType object I'm believing is self.serial this could be my package but my pyserial is 3.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions