Skip to content

Commit

Permalink
Merge pull request #45 from shlomiLan/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
mergify[bot] committed May 17, 2019
2 parents c363350 + 844402a commit c9aa719
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 21 deletions.
20 changes: 0 additions & 20 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,31 +1,11 @@
.idea
dist
*.DS_Store
.cache/

*.py[co]

# Unit test / coverage reports
.coverage
htmlcov/

# config files
/tvsort_sl/settings/local.yml
tvsort_sl/settings/test.yml

#virtual environment
venv/

# logs
logs/

# subliminal files
cachefile.dbm.db
cachefile.dbm.dogpile.lock
cachefile.dbm.rw.lock

.mypy_cache/
.pytest_cache/
.mutmut-cache

resources/
5 changes: 4 additions & 1 deletion tvsort_sl/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@


PROCESS_RUNNING = 'Proses already running'
CONNECTION_ISSUE = 'HTTPConnectionPool'


class TvSort(object):
Expand Down Expand Up @@ -162,7 +163,9 @@ def is_send_report(self):
if self.report.get('counters'):
errors = self.report.get('errors')
if errors:
return any(x != PROCESS_RUNNING for x in errors)
return any(
x != PROCESS_RUNNING and CONNECTION_ISSUE not in x for x in errors
)

return False

Expand Down

0 comments on commit c9aa719

Please sign in to comment.