Skip to content

Commit

Permalink
fix unnecessary else structure and sh file.
Browse files Browse the repository at this point in the history
  • Loading branch information
Xanonymous-GitHub committed Mar 27, 2020
1 parent 15e3776 commit 510399b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
9 changes: 4 additions & 5 deletions crawler.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,7 @@ def get_article_ids(page=""):
data.update(dict(articles=id_list))

return data
else:
soup = BeautifulSoup(response.text, 'html.parser')
error = soup.find('title')
error_message = dict(error=error.get_text())
return error_message
soup = BeautifulSoup(response.text, 'html.parser')
error = soup.find('title')
error_message = dict(error=error.get_text())
return error_message
1 change: 1 addition & 0 deletions deploy.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/bin/bash
sudo pkill screen
sudo pkill flask
sudo rm -rf ./hey-ptt
Expand Down

0 comments on commit 510399b

Please sign in to comment.