From 897a19e127e7f127da1b5e0adc3c184773853b7e Mon Sep 17 00:00:00 2001 From: Jesse Wattenbarger Date: Wed, 21 Jun 2023 12:37:59 -0400 Subject: Add None check back to get_post_fields (#14155) --- awxkit/awxkit/api/pages/page.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'awxkit') diff --git a/awxkit/awxkit/api/pages/page.py b/awxkit/awxkit/api/pages/page.py index d43840e536..c47ff20a08 100644 --- a/awxkit/awxkit/api/pages/page.py +++ b/awxkit/awxkit/api/pages/page.py @@ -525,6 +525,9 @@ class PageCache(object): options_page = self.get_options(page) + if options_page is None: + return None + if 'POST' not in options_page.r.headers.get('Allow', ''): return None -- cgit v1.2.3