|
1 | 1 | # TODO: |
2 | 2 | # Clean up code, remove redundancy |
3 | | -VERSION = "4.7.0" |
| 3 | +VERSION = "4.7.1" |
4 | 4 | import semver |
5 | 5 | import urllib.parse |
6 | 6 | import webbrowser |
@@ -2653,7 +2653,7 @@ class MacAttack(QMainWindow): |
2653 | 2653 | # Update self.customprefix with the currently selected prefix |
2654 | 2654 | self.customprefix = self.prefix_dropdown.currentText() |
2655 | 2655 | self.customprefix = self.customprefix.replace(' (default)', '') #remove default |
2656 | | - print(f"Updated customprefix: {self.customprefix}") |
| 2656 | + logging.info(f"Updated customprefix: {self.customprefix}") |
2657 | 2657 |
|
2658 | 2658 |
|
2659 | 2659 | def set_portal_type_detected(self, index): |
@@ -3359,12 +3359,12 @@ class MacAttack(QMainWindow): |
3359 | 3359 | selected_proxy = None |
3360 | 3360 | if not selected_proxy: # Check only if no proxy is already set |
3361 | 3361 | if alt_speed_enabled: |
3362 | | - print("No proxy assigned") |
| 3362 | + logging.info("No proxy assigned") |
3363 | 3363 | if not self.proxy_queue: # If the deque is empty |
3364 | | - print("All proxies are used up, exiting thread.") |
| 3364 | + logging.info("All proxies are used up, exiting thread.") |
3365 | 3365 | break # Exit the thread if no proxies are left |
3366 | 3366 | selected_proxy = self.proxy_queue.popleft() |
3367 | | - print(f"{selected_proxy} chosen from deque") |
| 3367 | + logging.info(f"{selected_proxy} chosen from deque") |
3368 | 3368 | else: |
3369 | 3369 | # Only choose a random proxy if alt_speed_enabled is not checked |
3370 | 3370 | selected_proxy = random.choice(proxies) |
@@ -4219,7 +4219,7 @@ class MacAttack(QMainWindow): |
4219 | 4219 | f"Error for Portal: <b>503 Rate Limited</b> {selected_proxy}" |
4220 | 4220 | ) |
4221 | 4221 | if self.temp_remove_proxy(selected_proxy): # Temp remove the proxy |
4222 | | - print("RATELIMITED ALT METHOD") |
| 4222 | + logging.info("RATELIMITED ALT METHOD") |
4223 | 4223 | time.sleep(self.remove_for_seconds_spinbox.value()) #sleep the thread if alt speed enabled |
4224 | 4224 |
|
4225 | 4225 | elif "ERR_ACCESS_DENIED" in res.text: |
|
0 commit comments