Browse Source

print the peertube response.json when in error

develop
Zykino 5 years ago
parent
commit
34103c49f2
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      lib/pt_upload.py

+ 1
- 0
lib/pt_upload.py View File

@ -138,6 +138,7 @@ def upload_video(oauth, secret, options):
else:
logging.error(('Peertube: The upload failed with an unexpected response: '
'%s') % response)
print(response.json())
exit(1)

Loading…
Cancel
Save