File tree 1 file changed +4
-1
lines changed
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 33
33
import re
34
34
import urllib3
35
35
from github3 import login
36
+ from github3 .models import GitHubError
36
37
from requests .auth import HTTPBasicAuth
37
38
from requests import post , get , head
38
39
from build_server import (
@@ -185,7 +186,7 @@ def main():
185
186
github_release_name ,
186
187
target_commitish = git_branch_name ,
187
188
prerelease = True ,
188
- body = formatted_logs .get (repo_name ))
189
+ body = formatted_logs .get (repo_name )[: 125000 ] )
189
190
190
191
# Upload all deploy artifacts/installers to GitHub
191
192
# NOTE: ONLY for `openshot-qt` repo
@@ -367,6 +368,8 @@ def main():
367
368
except Exception as ex :
368
369
tb = traceback .format_exc ()
369
370
error ("Unhandled %s exception: %s - %s" % (script_mode , str (ex ), str (tb )))
371
+ if type (ex ) == GitHubError :
372
+ error (str (ex .errors ))
370
373
371
374
if not errors_detected :
372
375
output ("Successfully completed %s script!" % script_mode )
You can’t perform that action at this time.
0 commit comments