We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0ca8412 commit 1651381Copy full SHA for 1651381
1 file changed
diff_pdf_visually/diff.py
@@ -236,13 +236,16 @@ def pdfdiff_pages(
236
237
if time_to_inspect > 0:
238
print(
239
- "Waiting for {} seconds before removing temporary directory...".format(
+ "Waiting for {} seconds (or Ctrl+C) before removing temporary directory...".format(
240
time_to_inspect
241
),
242
end="",
243
flush=True,
244
)
245
- time.sleep(time_to_inspect)
+ try:
246
+ time.sleep(time_to_inspect)
247
+ except KeyboardInterrupt:
248
+ pass
249
print(" done.")
250
251
return list(map(lambda pair: pair[1], largest_significances))
0 commit comments