+ "(use --force to overwrite it)" % filename)
+
+ # Check if the authentication token is valid. The earlier the better
+ try:
+ account = Kamaki.get_account(options.token)
+ if account is None:
+ raise FatalError("The authentication token you provided is not "
+ "valid!")
+ except ClientError as e:
+ raise FatalError("Astakos client: %d %s" % (e.status, e.message))
+
+ disk = Disk(options.source, out, options.tmp)
+
+ def signal_handler(signum, frame):
+ disk.cleanup()