diff options
Diffstat (limited to 'source_control/github_hooks.py')
-rw-r--r-- | source_control/github_hooks.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/source_control/github_hooks.py b/source_control/github_hooks.py index d75fcb15..9f664875 100644 --- a/source_control/github_hooks.py +++ b/source_control/github_hooks.py @@ -18,7 +18,15 @@ # You should have received a copy of the GNU General Public License # along with Ansible. If not, see <http://www.gnu.org/licenses/>. -import json +try: + import json +except ImportError: + try: + import simplejson as json + except ImportError: + # Let snippet from module_utils/basic.py return a proper error in this case + pass + import base64 DOCUMENTATION = ''' |