From b08af5ce47a0f7bb01a04b01ea98fb55c314ff51 Mon Sep 17 00:00:00 2001 From: Prashant Agrawal Date: Thu, 24 Sep 2015 13:25:54 +0530 Subject: [PATCH] Keep a reference of access manager to prevent jigna crash. --- jigna/__init__.py | 2 +- jigna/core/proxy_qwebview.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/jigna/__init__.py b/jigna/__init__.py index e46aee1..8969d49 100644 --- a/jigna/__init__.py +++ b/jigna/__init__.py @@ -1 +1 @@ -__version__ = '0.9' +__version__ = '0.9.1' diff --git a/jigna/core/proxy_qwebview.py b/jigna/core/proxy_qwebview.py index 893f2a9..76a415b 100644 --- a/jigna/core/proxy_qwebview.py +++ b/jigna/core/proxy_qwebview.py @@ -41,8 +41,8 @@ def __init__( # Install custom access manager to delegate requests to custom WSGI # hosts. - access_manager = ProxyAccessManager(hosts=hosts) - self.page().setNetworkAccessManager(access_manager) + self._access_manager = ProxyAccessManager(hosts=hosts) + self.page().setNetworkAccessManager(self._access_manager) # Disable some actions for action in self.DISABLED_ACTIONS: