Commit 0b07c0f1 authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Fix error exit on dependency install errors

parent 91d56bfe
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -49,9 +49,9 @@ def main():
	if opts.extras:
		cmd.extend(f'.[{target}]' for target in opts.extras)

	proc = subprocess.run(cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
	proc = subprocess.run(cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, text=True)
	if proc.returncode:
		ap.error(proc.stdout)
		ap.exit(3, proc.stdout)

	run = lint.Run(opts.files, do_exit=False)
	score = run.linter.stats['global_note']