mirror of
https://github.com/bendtherules/pytest_gui_status.git
synced 2026-08-18 13:42:26 +00:00
Small fixes in doc + missing app_gui.stop on error
This commit is contained in:
@@ -59,7 +59,8 @@ class Controller(htmlPy.Object):
|
|||||||
hash_dir_name = redis_db.hget("directories_to_hash", dir_name)
|
hash_dir_name = redis_db.hget("directories_to_hash", dir_name)
|
||||||
|
|
||||||
if hash_dir_name is None:
|
if hash_dir_name is None:
|
||||||
raise Exception("dir_name = {dir_name} not found in redis db".format(
|
self.app_gui.stop()
|
||||||
|
raise redis.exceptions.ConnectionError("dir_name = {dir_name} not found in redis db".format(
|
||||||
dir_name=dir_name))
|
dir_name=dir_name))
|
||||||
|
|
||||||
dict_state = {}
|
dict_state = {}
|
||||||
|
|||||||
@@ -43,6 +43,9 @@ def reload_2_3(module_name):
|
|||||||
reload that works in all versions of Python.
|
reload that works in all versions of Python.
|
||||||
Uses builtin reload in py2, imp.reload for <=py3.3,
|
Uses builtin reload in py2, imp.reload for <=py3.3,
|
||||||
importlib.reload for >=3.4
|
importlib.reload for >=3.4
|
||||||
|
|
||||||
|
The module six has similar functionalities,
|
||||||
|
but would be too huge a dependency for this simple case.
|
||||||
'''
|
'''
|
||||||
|
|
||||||
from sys import version_info
|
from sys import version_info
|
||||||
|
|||||||
Reference in New Issue
Block a user