Skip to content

Commit fe0ef98

Browse files
OpenHTF Ownerscopybara-github
OpenHTF Owners
authored andcommitted
Added pytype None checks to station_server.py.
PiperOrigin-RevId: 608611221
1 parent 72a2e31 commit fe0ef98

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

openhtf/output/servers/station_server.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -453,10 +453,12 @@ def get(self):
453453

454454
history_items = []
455455

456+
if self.history_path is None:
457+
raise ValueError('history_path is None, try calling initialize() first')
458+
456459
for file_name in os.listdir(self.history_path):
457460
if not file_name.endswith('.pb'):
458461
continue
459-
460462
if not os.path.isfile(os.path.join(self.history_path, file_name)):
461463
continue
462464

0 commit comments

Comments
 (0)