Skip to content

Commit

Permalink
Merge pull request #3307 from Lnaden/master
Browse files Browse the repository at this point in the history
Replace JSONDecodeError with Py version agnostic solution
  • Loading branch information
msarahan authored Dec 12, 2018
2 parents ff57356 + ad2a389 commit 5ba9b39
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions conda_build/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def _download_channeldata(channel_url):
try:
with open(tf) as f:
data = json.load(f)
except json.decoder.JSONDecodeError:
except JSONDecodeError:
data = {}
return data

Expand Down Expand Up @@ -270,7 +270,7 @@ def get_build_index(subdir, bldpkgs_dir, output_folder=None, clear_cache=False,
with open(channeldata_file, "r+") as f:
channel_data[channel.name] = json.load(f)
break
except (IOError, json.decoder.JSONDecodeError):
except (IOError, JSONDecodeError):
time.sleep(0.2)
retry += 1
else:
Expand Down

0 comments on commit 5ba9b39

Please sign in to comment.