Skip to content

Commit

Permalink
Ignore JSONDecodeError exceptions: MS /posts/urls endpoint
Browse files Browse the repository at this point in the history
For now, let's not hear about the MS problem with each report.
When MS is fixed, this should be reverted.

-autopull
  • Loading branch information
makyen committed Jul 2, 2020
1 parent 62bcdea commit 055dafd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions metasmoke.py
Expand Up @@ -580,6 +580,8 @@ def get_post_bodies_from_ms(post_url):
response = Metasmoke.get('/api/v2.0/posts/urls', params=payload).json()
except AttributeError:
return None
except json.decoder.JSONDecodeError:
return None
except Exception as e:
log('error', '{}: {}'.format(type(e).__name__, e))
log_exception(*sys.exc_info())
Expand Down

0 comments on commit 055dafd

Please sign in to comment.