Skip to content

Commit

Permalink
Fix Travis and Logger
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentcox committed Feb 11, 2018
1 parent 1d80359 commit 169aefb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ deploy:
provider: releases
skip_cleanup: true
prerelease: true
body: "This is an automated build. <br> $TRAVIS_COMMIT $TRAVIS_COMMIT_MESSAGE"
on:
all_branches: true
tags: true
Expand Down
2 changes: 2 additions & 0 deletions src/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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")
Expand Down
3 changes: 2 additions & 1 deletion src/searchwords.py
Original file line number Diff line number Diff line change
@@ -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:
Expand Down

0 comments on commit 169aefb

Please sign in to comment.