Skip to content

Commit

Permalink
Missed the rest of the bad merge in the previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
natefoo committed Oct 15, 2015
1 parent 735e1c1 commit 22297e3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/pulsar/client/config_util.py
Expand Up @@ -52,6 +52,9 @@ def __find_type(path, explicit_type, default_type):


def __read_yaml(path):
if yaml is None:
raise ImportError("Attempting to read YAML configuration file - but PyYAML dependency unavailable.")

with open(path, "rb") as f:
return yaml.load(f)

Expand Down

0 comments on commit 22297e3

Please sign in to comment.