Bläddra i källkod

Fixes #11402: Avoid LookupError exception when running scripts with commit disabled

jeremystretch 3 år sedan
förälder
incheckning
8729d60c1c
2 ändrade filer med 2 tillägg och 1 borttagningar
  1. 1 0
      docs/release-notes/version-3.4.md
  2. 1 1
      netbox/netbox/context.py

+ 1 - 0
docs/release-notes/version-3.4.md

@@ -16,6 +16,7 @@
 * [#11340](https://github.com/netbox-community/netbox/issues/11340) - Avoid flagging cable termination changes erroneously
 * [#11340](https://github.com/netbox-community/netbox/issues/11340) - Avoid flagging cable termination changes erroneously
 * [#11379](https://github.com/netbox-community/netbox/issues/11379) - Fix TypeError exception when bulk editing custom date fields
 * [#11379](https://github.com/netbox-community/netbox/issues/11379) - Fix TypeError exception when bulk editing custom date fields
 * [#11384](https://github.com/netbox-community/netbox/issues/11384) - Correct current time display on script & report forms
 * [#11384](https://github.com/netbox-community/netbox/issues/11384) - Correct current time display on script & report forms
+* [#11402](https://github.com/netbox-community/netbox/issues/11402) - Avoid LookupError exception when running scripts with commit disabled
 * [#11403](https://github.com/netbox-community/netbox/issues/11403) - Fix exception when scheduling a job in the past
 * [#11403](https://github.com/netbox-community/netbox/issues/11403) - Fix exception when scheduling a job in the past
 
 
 ---
 ---

+ 1 - 1
netbox/netbox/context.py

@@ -7,4 +7,4 @@ __all__ = (
 
 
 
 
 current_request = ContextVar('current_request', default=None)
 current_request = ContextVar('current_request', default=None)
-webhooks_queue = ContextVar('webhooks_queue')
+webhooks_queue = ContextVar('webhooks_queue', default=[])