Skip to content

Commit 15fb316

Browse files
committed
Use try/except for pyyaml vs ruamel.
1 parent 837709d commit 15fb316

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

notebooks/check_env.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@
66
import json
77
import os
88
import sys
9-
import yaml
9+
10+
try:
11+
import yaml
12+
except ImportError:
13+
from ruamel import yaml
1014

1115

1216
def _print_version_ok(item):

postBuild

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)