diff --git a/.github/workflows/download_wx.py b/.github/workflows/download_wx.py index 3f6e7a4c..e5d49270 100644 --- a/.github/workflows/download_wx.py +++ b/.github/workflows/download_wx.py @@ -36,8 +36,9 @@ response = requests.get('https://api.github.com/repos/NREL/lk/actions/artifacts', headers=headers) r = response.json() -if 'bad' in r['message']: - raise RuntimeError(r) +if 'message' in r.keys(): + print(r) + raise RuntimeError(r['message']) artifacts = r['artifacts']