|
@@ -4,7 +4,7 @@ from collections import defaultdict
|
|
from ._common import with_repository, Highlander
|
|
from ._common import with_repository, Highlander
|
|
from ..constants import * # NOQA
|
|
from ..constants import * # NOQA
|
|
from ..compress import CompressionSpec, ObfuscateSize, Auto, COMPRESSOR_TABLE
|
|
from ..compress import CompressionSpec, ObfuscateSize, Auto, COMPRESSOR_TABLE
|
|
-from ..helpers import sig_int, ProgressIndicatorPercent
|
|
|
|
|
|
+from ..helpers import sig_int, ProgressIndicatorPercent, Error
|
|
|
|
|
|
from ..manifest import Manifest
|
|
from ..manifest import Manifest
|
|
|
|
|
|
@@ -150,7 +150,7 @@ class RCompressMixIn:
|
|
pi.finish()
|
|
pi.finish()
|
|
if sig_int:
|
|
if sig_int:
|
|
# Ctrl-C / SIGINT: do not checkpoint (commit) again, we already have a checkpoint in this case.
|
|
# Ctrl-C / SIGINT: do not checkpoint (commit) again, we already have a checkpoint in this case.
|
|
- self.print_error("Got Ctrl-C / SIGINT.")
|
|
|
|
|
|
+ raise Error("Got Ctrl-C / SIGINT.")
|
|
elif uncommitted_chunks > 0:
|
|
elif uncommitted_chunks > 0:
|
|
checkpoint_func()
|
|
checkpoint_func()
|
|
if args.stats:
|
|
if args.stats:
|