mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
Hiding print messages in JSON.
This commit is contained in:
parent
4012a10b21
commit
35eaec0939
1 changed files with 2 additions and 2 deletions
|
@ -108,7 +108,7 @@ def json_view(func):
|
|||
'\n'.join(traceback.format_exception(*exc_info)),
|
||||
request_repr,
|
||||
)
|
||||
print message
|
||||
# print message
|
||||
mail_admins(subject, message, fail_silently=True)
|
||||
|
||||
# Come what may, we're returning JSON.
|
||||
|
@ -126,7 +126,7 @@ def json_view(func):
|
|||
def main():
|
||||
test = {1: True, 2: u"string", 3: 30}
|
||||
json_test = json_encode(test)
|
||||
print test, json_test
|
||||
# print test, json_test
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
Loading…
Add table
Reference in a new issue