diff --git a/.travis.yml b/.travis.yml index 093ac91..f65cda7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -61,7 +61,6 @@ deploy: provider: releases skip_cleanup: true prerelease: true - body: "This is an automated build.
$TRAVIS_COMMIT $TRAVIS_COMMIT_MESSAGE" on: all_branches: true tags: true diff --git a/src/logger.py b/src/logger.py index bb74324..bec9234 100644 --- a/src/logger.py +++ b/src/logger.py @@ -3,6 +3,7 @@ import configparser from html_page import Htmlpage from time import localtime, strftime +import time # This class uses a singleton. http://python-3-patterns-idioms-test.readthedocs.io/en/latest/Singleton.html @@ -61,6 +62,7 @@ def log(self, message, level=3): self.cPrint(message, level) if int(level) == 1 and int(self.loglevel) >= 1: self.__make_log_entry(message, "red") + time.sleep(7) sys.exit(1) elif int(level) == 2 and int(self.loglevel) >= 2: self.__make_log_entry(message, "amber") diff --git a/src/searchwords.py b/src/searchwords.py index ab77a17..7d6b7c9 100644 --- a/src/searchwords.py +++ b/src/searchwords.py @@ -1,10 +1,11 @@ import configparser import os +import sys from collections import OrderedDict from operator import itemgetter from logger import Logger -import sys + class Searchwords: