Skip to content

Commit 38bbfd9

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

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

openhtf/output/servers/station_server.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,8 @@ def get(self):
456456
for file_name in os.listdir(self.history_path):
457457
if not file_name.endswith('.pb'):
458458
continue
459-
459+
if self.history_path is None:
460+
raise ValueError('history_path is None, try calling initialize() first')
460461
if not os.path.isfile(os.path.join(self.history_path, file_name)):
461462
continue
462463

0 commit comments

Comments
 (0)