Skip to content

Commit

Permalink
notification news
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelKatsoulis committed Apr 29, 2018
1 parent 04db243 commit 207398d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions scrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,13 @@ def main():
try:
content = urllib2.urlopen(req).read()
except ssl.SSLError:
logger.warning('ssl error')
logger.error('ssl error')
continue
except urllib2.URLError:
logger.warning('Bad URL: {}'.format(url))
logger.error('Bad URL: {}'.format(url))
continue
except Exception:
logger.error('Bad URL: {}'.format(url))
continue
soup = BeautifulSoup(content, "html.parser")

Expand Down

0 comments on commit 207398d

Please sign in to comment.