Skip to content

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

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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