Skip to content

Commit

Permalink
just test, no coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
iandennismiller committed Aug 9, 2020
1 parent 3be9a75 commit 490ef85
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 12 deletions.
13 changes: 7 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,19 @@ branches:
- master
- develop
python:
- 3.5
- 3.6
- 3.7
# command to install dependencies
install: make requirements develop install
# command to run tests
script: make coverage
after_success:
- coveralls
script: make test
# after_success:
# - coveralls
notifications:
email:
on_success: change
on_failure: change
# email:
# on_success: change
# on_failure: change
webhooks:
urls:
- "https://scalar.vector.im/api/neb/services/hooks/dHJhdmlzLWNpLyU0MGlhbmRlbm5pc21pbGxlciUzQW1hdHJpeC5vcmcvJTIxUWRjV0pHdndOUE5pSHNmcnZWJTNBbWF0cml4Lm9yZw"
Expand Down
15 changes: 9 additions & 6 deletions src/gthnk/librarian.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,15 @@ def rotate_buffers(self):

for filename in file_list:
self.app.logger.info("load and parse: {}".format(filename))
shutil.copy2(filename, backup_path)

# load and parse the file
journal_buffer = TextFileJournalBuffer()
journal_buffer.process_one(filename)
journal_buffer.save_entries()
try:
shutil.copy2(filename, backup_path)

# load and parse the file
journal_buffer = TextFileJournalBuffer()
journal_buffer.process_one(filename)
journal_buffer.save_entries()
except FileNotFoundError:
pass

# now reset the file size to 0.
with open(filename, "w", encoding='utf-8'):
Expand Down

0 comments on commit 490ef85

Please sign in to comment.