We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 579dd57 commit c302f50Copy full SHA for c302f50
vyper/cli/vyper_compile.py
@@ -376,7 +376,9 @@ def compile_files(
376
# rare, strange race conditions if the file changes in between
377
# the two reads).
378
file = input_bundle.load_file(file_path)
379
- assert isinstance(file, FileInput) # mypy hint
+ file = input_bundle.load_file(file_path)
380
+ if not isinstance(file, FileInput):
381
+ raise ValueError(f"Invalid Vyper content: '{file_path}'")
382
383
storage_layout_override = None
384
if storage_layout_paths:
0 commit comments