Skip to content

Commit

Permalink
Merge pull request #1416 from zrquan/patch-1
Browse files Browse the repository at this point in the history
suppress CancelledError
  • Loading branch information
shelld3v authored Oct 18, 2024
2 parents ba9b09a + 8da29c4 commit e80019c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/controller/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ def start(self) -> None:
self.fuzzer.start()
self.process()

except KeyboardInterrupt:
except (KeyboardInterrupt, asyncio.CancelledError):
pass

finally:
Expand Down Expand Up @@ -330,7 +330,7 @@ def set_target(self, url: str) -> None:
if not port:
port = STANDARD_PORTS.get(parsed.scheme, None)
elif not 0 < port < 65536:
raise InvalidURLException(f"Invalid port number: {port}")
raise InvalidURLException(f"Invalid port number: {port}")

if options["ip"]:
cache_dns(parsed.hostname, port, options["ip"])
Expand Down

0 comments on commit e80019c

Please sign in to comment.