Skip to content

Commit 8f6f2bf

Browse files
authored
Merge pull request #23 from CodeTeam/fix_travis
Fix travis, fix write_error
2 parents 40791e9 + 87f9278 commit 8f6f2bf

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

.travis.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,8 @@ addons:
1616
env:
1717
global:
1818
- CODECLIMATE_REPO_TOKEN=none
19-
- PGPORT=5433
20-
- PGHOST=localhost
2119
- PIP_DISABLE_PIP_VERSION_CHECK=on
22-
- DATABASE_URL=postgres://postgres@localhost:5433/travis_ci_test
20+
- DATABASE_URL=postgres://postgres@localhost:5432/travis_ci_test
2321

2422
before_script:
2523
- sudo cp /etc/postgresql/9.4/main/pg_hba.conf /etc/postgresql/9.5/main/pg_hba.conf

tcrudge/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@
66
Supports JSON and MessagePack responses.
77
"""
88

9-
__version__ = "0.8.1"
9+
__version__ = "0.8.2"
1010

tcrudge/handlers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def write_error(self, status_code, **kwargs):
100100
else:
101101
# exc_info[1] - HTTPError instance
102102
# Finish request with exception body or exception reason
103-
self.write(getattr(exc_info[1], 'body', None))
103+
self.write(getattr(exc_info[1], 'body', self._reason))
104104
self.finish()
105105

106106
async def validate(self, data, schema, **kwargs):

0 commit comments

Comments
 (0)