Skip to content

Commit 6e636e8

Browse files
committed
Fixing a max length error on deploy/publish script with GitHub API, and adding better errors for GitHub specific issues.
1 parent 377a8f4 commit 6e636e8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

installer/deploy.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
import re
3434
import urllib3
3535
from github3 import login
36+
from github3.models import GitHubError
3637
from requests.auth import HTTPBasicAuth
3738
from requests import post, get, head
3839
from build_server import (
@@ -185,7 +186,7 @@ def main():
185186
github_release_name,
186187
target_commitish=git_branch_name,
187188
prerelease=True,
188-
body=formatted_logs.get(repo_name))
189+
body=formatted_logs.get(repo_name)[:125000])
189190

190191
# Upload all deploy artifacts/installers to GitHub
191192
# NOTE: ONLY for `openshot-qt` repo
@@ -367,6 +368,8 @@ def main():
367368
except Exception as ex:
368369
tb = traceback.format_exc()
369370
error("Unhandled %s exception: %s - %s" % (script_mode, str(ex), str(tb)))
371+
if type(ex) == GitHubError:
372+
error(str(ex.errors))
370373

371374
if not errors_detected:
372375
output("Successfully completed %s script!" % script_mode)

0 commit comments

Comments
 (0)