Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix python issue reported by lgtm.com #7580

Merged
merged 1 commit into from
Nov 1, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions utils/s3tools/s3uploader
Original file line number Diff line number Diff line change
Expand Up @@ -92,14 +92,14 @@ if __name__ == "__main__":
parser.add_argument('--tmp-prefix', default='/tmp',
help='Prefix to store temporay downloaded file')
data_group = parser.add_mutually_exclusive_group(required=True)
data_group.add_argument('--table-name',
table_name_argument = data_group.add_argument('--table-name',
help='Name of table with database, if you are uploading partitions')
data_group.add_argument('--file-path',
help='Name of file, if you are uploading')
args = parser.parse_args()

if args.table_name is not None and args.clickhouse_data_path is None:
raise argparse.ArgumentError(
raise argparse.ArgumentError(table_name_argument,
"You should specify --clickhouse-data-path to upload --table")

s3_conn = S3API(
Expand Down