Skip to content

Commit 7e3e516

Browse files
committed
update bool handling for safegraph_patterns too
1 parent 4aba282 commit 7e3e516

File tree

1 file changed

+2
-1
lines changed
  • safegraph_patterns/delphi_safegraph_patterns

1 file changed

+2
-1
lines changed

safegraph_patterns/delphi_safegraph_patterns/run.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,13 @@ def run_module():
5858
# Why call subprocess rather than using a native Python client, e.g. boto3?
5959
# Because boto3 does not have a simple rsync-like call that can perform
6060
# the following behavior elegantly.
61-
if bool(params["sync"]):
61+
if params["sync"]:
6262
subprocess.run(
6363
f'aws s3 sync s3://sg-c19-response/{ver[1]}/ '
6464
f'{raw_data_dir}/{ver[1]}/ --endpoint {aws_endpoint}',
6565
env=env_vars,
6666
shell=True,
67+
check=True
6768
)
6869

6970
brand_df = pd.read_csv(

0 commit comments

Comments
 (0)