ensure that there is not already an issue that has been created for yours
(param)
| 110 | |
| 111 | |
| 112 | def ensure_no_issue(param): |
| 113 | """ |
| 114 | ensure that there is not already an issue that has been created for yours |
| 115 | """ |
| 116 | urls = ( |
| 117 | "https://github.com/NullArray/AutoSploit/issues", |
| 118 | "https://github.com/NullArray/AutoSploit/issues?q=is%3Aissue+is%3Aclosed" |
| 119 | ) |
| 120 | for url in urls: |
| 121 | req = requests.get(url) |
| 122 | param = re.compile(param) |
| 123 | try: |
| 124 | if param.search(req.content) is not None: |
| 125 | return True |
| 126 | except: |
| 127 | content = str(req.content) |
| 128 | if param.search(content) is not None: |
| 129 | return True |
| 130 | return False |
| 131 | |
| 132 | |
| 133 | def find_url(params): |
no test coverage detected