| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -238,7 +238,11 @@ def _acquireLock(): | |||
| 238 | 238 | This should be released with _releaseLock(). | |
| 239 | 239 | """ | |
| 240 | 240 | if _lock: | |
| 241 | - _lock.acquire() | ||
| 241 | + try: | ||
| 242 | + _lock.acquire() | ||
| 243 | + except BaseException: | ||
| 244 | + _lock.release() | ||
| 245 | + raise | ||
| 242 | 246 | ||
| 243 | 247 | def _releaseLock(): | |
| 244 | 248 | """ | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1 @@ | |||
| 1 | + Fix rare concurrency bug in lock acquisition by the logging package. | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments