Skip to content

Commit

Permalink
coverage: adding no cover comments for lines that will never be teste…
Browse files Browse the repository at this point in the history
…d when libyaml is available.

Signed-off-by: Eamonn Maguire <eamonnmag@gmail.com>
  • Loading branch information
eamonnmag committed Mar 14, 2016
1 parent 695f627 commit 148a54d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hepdata_validator/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ def validate(self, file_path):
try:
try:
data = yaml.load(open(file_path, 'r'), Loader=yaml.CLoader)
except:
data = yaml.load(open(file_path, 'r'))
except: #pragma: no cover
data = yaml.load(open(file_path, 'r')) #pragma: no cover

validate(data, schema)

Expand Down

0 comments on commit 148a54d

Please sign in to comment.