Skip to content

Commit

Permalink
Moved printed query to new line
Browse files Browse the repository at this point in the history
  • Loading branch information
BenOSanders committed Aug 1, 2019
1 parent e9a9f26 commit be12c14
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions autostack/web_scraper/stack_overflow_scraper.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,25 +53,29 @@ def accepted_posts(query):
print('HTTP Error:', err)
print('Looks like there might be a problem with Stack Overflow.',
'Here is the link we generated so you can use it when',
'it\'s back online!', query_url)
'it\'s back online!')
print(query_url)
break
except requests.exceptions.ConnectionError as errc:
print('Error Connecting:', errc)
print('Looks like there might be a problem with your internet',
'connection. Here is the link we generated for you so you',
'can use it when you\'re back online!', query_url)
'can use it when you\'re back online!')
print(query_url)
break
except requests.exceptions.Timeout as errt:
print('Timeout Error:', errt)
print('Looks like we ran into a problem connecting to Stack',
'Overflow. Here is the link we generated for you so you can',
'search for answers the primitive way, manually.', query_url)
'search for answers the primitive way, manually.')
print(query_url)
break
except requests.exceptions.TooManyRedirects as errtc:
print('Too Many Redirects Error:', errtc)
print('Looks like there might be a problem with your internet',
'connection. Here is the link we generated for',
'you so you can use it when you\'re back online!', query_url)
'you so you can use it when you\'re back online!')
print(query_url)
break
except requests.exceptions.RequestException as e:
# Catch all other errors.
Expand Down

0 comments on commit be12c14

Please sign in to comment.