Skip to content

Commit 162540d

Browse files
[pylint 'consider-using-sys-exit'] Fix all occurences in existing code
1 parent 83d3ec3 commit 162540d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

extra/get_issues.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import json
22
from pathlib import Path
3+
import sys
34

45
import requests
56

@@ -17,7 +18,7 @@ def get_issues():
1718
if r.status_code == 403:
1819
# API request limit exceeded
1920
print(data["message"])
20-
exit(1)
21+
sys.exit(1)
2122
issues.extend(data)
2223

2324
# Look for next page

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,6 @@ disable = [
190190
"consider-using-from-import",
191191
"consider-using-f-string",
192192
"consider-using-in",
193-
"consider-using-sys-exit",
194193
"consider-using-ternary",
195194
"consider-using-with",
196195
"cyclic-import",

0 commit comments

Comments
 (0)