Skip to content

Commit d34fce4

Browse files
committed
Removed unreachable code
1 parent 9c3254e commit d34fce4

File tree

3 files changed

+1
-2
lines changed

3 files changed

+1
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ src/strategies/__pycache__/
88
*.pyc
99
.env
1010
update.sh
11+
.python-version
1112

1213
*yarn.lock
1314

scraper/src/config/config_loader.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@ def _load_config(self, config):
102102
return data
103103
except ValueError as value_error:
104104
raise ValueError('CONFIG is not a valid JSON') from value_error
105-
sys.exit(EXIT_CODE_WRONG_CONFIG)
106105

107106
def _parse(self):
108107
# Parse Env

scraper/src/documentation_spider.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,6 @@ def add_records(self, response, from_sitemap):
160160
self.reason_to_stop = "Too much hits, Docs-Scraper only handle {} records".format(
161161
int(self.nb_hits_max))
162162
raise ValueError(self.reason_to_stop)
163-
sys.exit(EXIT_CODE_EXCEEDED_RECORDS)
164163

165164
def parse_from_sitemap(self, response):
166165
if self.reason_to_stop is not None:

0 commit comments

Comments
 (0)