Skip to content

Commit f8d8d62

Browse files
authored
Offine station don't have measurements (#8)
1 parent 4c7de0c commit f8d8d62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

opensensemap_api/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,6 @@ def get_value(self, key):
130130
if entry["title"] == title
131131
][0]
132132
return value
133-
except IndexError:
133+
except (IndexError, TypeError):
134134
pass
135135
return None

0 commit comments

Comments
 (0)