Skip to content

Commit a2f9f06

Browse files
committed
fix
1 parent 1b6dbf9 commit a2f9f06

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
VERSION = (0, 7, 6)
1+
VERSION = (0, 7, 7)
22

33
__version__ = '.'.join(map(str, VERSION))

acedatacloud_scaffold/handlers/base.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
class BaseHandler(RequestHandler, LogMixin):
1313

1414
def write_json(self, data, status=200, headers={}):
15-
self.set_status(status)
15+
if not self._status_code:
16+
self.set_status(status)
1617
self.set_header('Content-Type', 'application/json')
1718
for key, value in headers.items():
1819
self.set_header(key, value)

0 commit comments

Comments
 (0)