expunge_logs: Abort on keyboard interrupt

(imported from commit b1fe93859c15e447c0935fcfb0e83a200bc016ba)
This commit is contained in:
Keegan McAllister 2013-02-06 18:15:03 -05:00
parent a8ffa339de
commit 5be28bbbb4

View File

@ -61,6 +61,8 @@ class Command(BaseCommand):
for infile in args:
try:
expunge(infile)
except KeyboardInterrupt:
raise
except:
print >>sys.stderr, 'WARNING: Could not expunge from', infile
traceback.print_exc()