Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion tinyoscquery/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,10 @@ def get_discovered_oscquery(self):
def find_service_by_name(self, name):
for svc in self.get_discovered_oscquery():
client = OSCQueryClient(svc)
if name in client.get_host_info().name:
host_info = client.get_host_info()
if host_info is None:
continue
if name in host_info.name:
return svc

return None
Expand Down