Skip to content

Commit

Permalink
refresh RSS feed function restored to count how many bad refresh atte…
Browse files Browse the repository at this point in the history
…mpts and desactivate bugged feeds
  • Loading branch information
DEKHTIARJonathan committed Aug 20, 2017
1 parent 89a18c8 commit f1f61f8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions feedcrunch/model_files/models_rssfeed.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,16 +126,16 @@ def refresh_feed(self):
try:
RSSArticle_Assoc.objects.create(subscribtion=subscribtion, user=subscribtion.user, article=tmp_article)
except Exception as e:
print (str(e))
pass
except:
pass
raise Exception("Exception occured while creating RSSArticle_Assoc object: " + str(e))

except Exception as e:
raise Exception("Exception occured : " + str(e))

self._reset_bad_attempts()

else:
raise Exception("Feed ID = " + str(self.id) + " can't be downloaded to server. Status = " + str(feed_content.status))

except Exception as e:
print ("An error occured in the process: " + str(e))
#self._trigger_bad_attempt()
self._trigger_bad_attempt()
return "An error occured in the process: " + str(e)

0 comments on commit f1f61f8

Please sign in to comment.