Skip to content

Commit

Permalink
fix conditional to skip 403 when creating datasets (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
keyn4 authored Jul 10, 2024
1 parent fe68ff5 commit fbb8d4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion target_bigquery/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def ensure_dataset(project_id, dataset_id, location):
if e.response.status_code == 403:
logger.info(f"Skipping dataset validation due user does not have permission to create datasets. Using dataset id from config {dataset_id}")
pass
if e.response.status_code == 409: # dataset exists
elif e.response.status_code == 409: # dataset exists
pass
else:
logger.critical(f"unable to create dataset {dataset_id} in project {project_id}; Exception {e}")
Expand Down

0 comments on commit fbb8d4b

Please sign in to comment.