Small fixes in doc + missing app_gui.stop on error

This commit is contained in:
2016-01-03 11:27:40 +05:30
parent c446797d83
commit 1e8203a92d
2 changed files with 5 additions and 1 deletions
+2 -1
View File
@@ -59,7 +59,8 @@ class Controller(htmlPy.Object):
hash_dir_name = redis_db.hget("directories_to_hash", dir_name)
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))
dict_state = {}