We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03575b2 commit 29e4aecCopy full SHA for 29e4aec
apstools/plans.py
@@ -156,7 +156,8 @@ def get_command_list(filename):
156
return command list from either text or Excel file
157
"""
158
full_filename = os.path.abspath(filename)
159
- assert os.path.exists(full_filename)
+ if not os.path.exists(full_filename):
160
+ raise IOError(f"file not found: {filename}")
161
try:
162
commands = parse_Excel_command_file(filename)
163
except APS_utils.ExcelReadError:
0 commit comments