Skip to content

Commit

Permalink
Emergency fix for MS down --autopull
Browse files Browse the repository at this point in the history
  • Loading branch information
iBug committed Jul 27, 2018
1 parent e51304f commit 02faf10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions datahandling.py
Original file line number Diff line number Diff line change
Expand Up @@ -448,12 +448,12 @@ def has_community_bumped_post(post_url, post_content):
if not ms_posts:
return False

latest_revision_date = max([post['created_at'] for post in ms_posts])
latest_revision_date = max(post['created_at'] for post in ms_posts)
for post in ms_posts:
if post['created_at'] == latest_revision_date:
if post['body'] == post_content:
return True
except requests.exceptions.ConnectionError:
except (requests.exceptions.ConnectionError, json.decoder.JSONDecodeError):
return False # MS is down, so assume it is not bumped
return False

Expand Down

0 comments on commit 02faf10

Please sign in to comment.