Skip to content
Snippets Groups Projects
Commit 25655f21 authored by Jeremy Auguste's avatar Jeremy Auguste
Browse files

Included error message if pyyaml is not installed on the system

parent 055aff17
Branches
No related tags found
No related merge requests found
...@@ -3,7 +3,12 @@ ...@@ -3,7 +3,12 @@
import argparse import argparse
import logging import logging
import sys
try:
import yaml import yaml
except ImportError:
print("Package 'pyyaml' needs to be installed to be able to use this script!", file=sys.stderr)
exit(1)
import subprocess import subprocess
from collections import defaultdict from collections import defaultdict
import re import re
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment