Browse Source

Merge "Reraise last error when getting DB connection"

tags/6.0.0.0rc1
Zuul 10 months ago
parent
commit
c1d86ff129
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      panko/storage/__init__.py

+ 1
- 0
panko/storage/__init__.py View File

@@ -61,6 +61,7 @@ def get_connection_from_config(conf):
61 61
     retries = conf.database.max_retries
62 62
 
63 63
     @tenacity.retry(
64
+        reraise=True,
64 65
         wait=tenacity.wait_fixed(conf.database.retry_interval),
65 66
         stop=(tenacity.stop_after_attempt(retries) if retries >= 0
66 67
               else tenacity.stop_never)

Loading…
Cancel
Save