Skip to content

Commit

Permalink
Added pytype None checks to station_server.py.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 608611221
  • Loading branch information
OpenHTF Owners authored and copybara-github committed Feb 20, 2024
1 parent 72a2e31 commit 38bbfd9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion openhtf/output/servers/station_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,8 @@ def get(self):
for file_name in os.listdir(self.history_path):
if not file_name.endswith('.pb'):
continue

if self.history_path is None:
raise ValueError('history_path is None, try calling initialize() first')
if not os.path.isfile(os.path.join(self.history_path, file_name)):
continue

Expand Down

0 comments on commit 38bbfd9

Please sign in to comment.