saltstack / pepper

A library and stand-alone CLI tools to access a salt-api instance
Other
247 stars 124 forks source link

FIX FOR #154: Missing Attribute JSONDecodeError #155

Closed robin-wittler closed 6 years ago

robin-wittler commented 6 years ago

Simple checking for AttributeError when getting the Attributre json.decode.JSONDecodeError. If Attribute does not exist we use ValueError.

codecov[bot] commented 6 years ago

Codecov Report

Merging #155 into develop will decrease coverage by 0.15%. The diff coverage is 0%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #155      +/-   ##
===========================================
- Coverage    18.29%   18.14%   -0.16%     
===========================================
  Files            3        3              
  Lines          481      485       +4     
===========================================
  Hits            88       88              
- Misses         393      397       +4
Impacted Files Coverage Δ
pepper/cli.py 0% <0%> (ø) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 91fcf57...3fb6722. Read the comment docs.

gtmanfred commented 6 years ago

Thanks!