aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Kabui2021-02-13 08:56:36 +0300
committerBonfaceKilz2021-02-13 16:55:08 +0300
commit187415f223b101f8c0b0ac100b2cf8e19c0ad3a5 (patch)
tree50a71acfedbca5635f5cffd8df041f537003ecb3
parentb53a8362ba1d3031ece2deefdc3309823b932012 (diff)
downloadgenenetwork2-187415f223b101f8c0b0ac100b2cf8e19c0ad3a5.tar.gz
refactor to use idiomatic python
-rw-r--r--test/requests/links_scraper/genelinks.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/test/requests/links_scraper/genelinks.py b/test/requests/links_scraper/genelinks.py
index 6a3d363e..12300f4a 100644
--- a/test/requests/links_scraper/genelinks.py
+++ b/test/requests/links_scraper/genelinks.py
@@ -49,10 +49,7 @@ def test_link(link):
except Exception as e:
status_code = 408
- if int(status_code) > 403:
- return True
-
- return False
+ return int(status_code) > 403
def fetch_css_links(parsed_page):