Skip to content

Commit

Permalink
Ensure name is not None
Browse files Browse the repository at this point in the history
  • Loading branch information
glopesdev committed Mar 20, 2024
1 parent 1e499c7 commit 31721cc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions aeon/io/streams.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ class Device:
"""

def __init__(self, name, *args, path=None):
if name is None:
raise ValueError("name cannot be None.")

self.name = name
self._streams = Device._createStreams(name if path is None else path, *args)

Expand Down

0 comments on commit 31721cc

Please sign in to comment.