Skip to content

Commit

Permalink
Make KeyboardInterrupt graceful
Browse files Browse the repository at this point in the history
  • Loading branch information
KarimPwnz committed Dec 12, 2021
1 parent b23301a commit 25f45eb
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions waybacked/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,12 @@ def main():
nargs=None, help="Search query")
args = parser.parse_args()
search = WaybackSearch(args.search)
for page in search.run():
for url in page:
print(url)
try:
for page in search.run():
for url in page:
print(url)
except KeyboardInterrupt:
pass


if __name__ == "__main__":
Expand Down

0 comments on commit 25f45eb

Please sign in to comment.