Skip to content

Commit

Permalink
fix get config
Browse files Browse the repository at this point in the history
  • Loading branch information
BinamB committed Jan 3, 2025
1 parent 9b8bd74 commit 7d96128
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .secrets.baseline
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@
"filename": "fence/utils.py",
"hashed_secret": "8318df9ecda039deac9868adf1944a29a95c7114",
"is_verified": false,
"line_number": 128
"line_number": 129
}
],
"migrations/versions/a04a70296688_non_unique_client_name.py": [
Expand Down Expand Up @@ -395,5 +395,5 @@
}
]
},
"generated_at": "2024-11-04T09:20:13Z"
"generated_at": "2025-01-03T16:46:44Z"
}
2 changes: 1 addition & 1 deletion fence/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ def get_SQLAlchemyDriver(db_conn_url):
DEFAULT_BACKOFF_SETTINGS = {
"on_backoff": log_backoff_retry,
"on_giveup": log_backoff_giveup,
"max_tries": config["DEFAULT_BACKOFF_SETTINGS_MAX_TRIES"],
"max_tries": config.get("DEFAULT_BACKOFF_SETTINGS_MAX_TRIES", 3),
"giveup": exception_do_not_retry,
}

Expand Down

0 comments on commit 7d96128

Please sign in to comment.