Skip to content

Commit

Permalink
Fix YAML load warning
Browse files Browse the repository at this point in the history
  • Loading branch information
ewels committed Oct 7, 2019
1 parent c7dc239 commit 2826c32
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions multiqc_ngi/multiqc_ngi.py
Original file line number Diff line number Diff line change
Expand Up @@ -526,13 +526,13 @@ def connect_statusdb(self):
try:
conf_file = os.path.join(os.environ.get('HOME'), '.ngi_config', 'statusdb.yaml')
with open(conf_file, "r") as f:
sdb_config = yaml.load(f)
sdb_config = yaml.safe_load(f)
log.debug("Got MultiQC_NGI statusdb config from the home directory.")
except IOError:
log.debug("Could not open the MultiQC_NGI statusdb config file {}".format(conf_file))
try:
with open(os.environ['STATUS_DB_CONFIG'], "r") as f:
sdb_config = yaml.load(f)
sdb_config = yaml.safe_load(f)
log.debug("Got MultiQC_NGI statusdb config from $STATUS_DB_CONFIG: {}".format(os.environ['STATUS_DB_CONFIG']))
except (KeyError, IOError):
log.debug("Could not get the MultiQC_NGI statusdb config file from env STATUS_DB_CONFIG")
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

from setuptools import setup, find_packages

version = '0.6'
version = '0.6.3'

setup(
name = 'multiqc_ngi',
Expand Down

0 comments on commit 2826c32

Please sign in to comment.