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-Service committed Feb 21, 2024
1 parent 72a2e31 commit fe0ef98
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion openhtf/output/servers/station_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -453,10 +453,12 @@ def get(self):

history_items = []

if self.history_path is None:
raise ValueError('history_path is None, try calling initialize() first')

for file_name in os.listdir(self.history_path):
if not file_name.endswith('.pb'):
continue

if not os.path.isfile(os.path.join(self.history_path, file_name)):
continue

Expand Down

0 comments on commit fe0ef98

Please sign in to comment.