mirror of https://github.com/axmolengine/axmol.git
update exception catch clause
This commit is contained in:
parent
1c0fc7859b
commit
e944dae338
|
@ -7,6 +7,7 @@ import urllib2
|
||||||
import urllib
|
import urllib
|
||||||
import base64
|
import base64
|
||||||
import requests
|
import requests
|
||||||
|
import sys
|
||||||
|
|
||||||
#get payload from os env
|
#get payload from os env
|
||||||
payload_str = os.environ['payload']
|
payload_str = os.environ['payload']
|
||||||
|
@ -41,7 +42,8 @@ def set_description(desc):
|
||||||
urllib2.urlopen(req)
|
urllib2.urlopen(req)
|
||||||
try:
|
try:
|
||||||
set_description(pr_desc)
|
set_description(pr_desc)
|
||||||
except Exception as e:
|
except:
|
||||||
|
e = sys.exc_info()[0]
|
||||||
print e
|
print e
|
||||||
|
|
||||||
#get statuses url
|
#get statuses url
|
||||||
|
@ -72,7 +74,8 @@ try:
|
||||||
#update submodule
|
#update submodule
|
||||||
git_update_submodule = "git submodule update --init --force"
|
git_update_submodule = "git submodule update --init --force"
|
||||||
os.system(git_update_submodule)
|
os.system(git_update_submodule)
|
||||||
except Exception as e:
|
except:
|
||||||
|
e = sys.exc_info()[0]
|
||||||
print e
|
print e
|
||||||
|
|
||||||
|
|
||||||
|
@ -105,7 +108,8 @@ try:
|
||||||
os.system("cd " + os.environ['WORKSPACE']);
|
os.system("cd " + os.environ['WORKSPACE']);
|
||||||
os.system("git checkout develop")
|
os.system("git checkout develop")
|
||||||
os.system("git branch -D pull" + str(pr_num))
|
os.system("git branch -D pull" + str(pr_num))
|
||||||
except Exception as e:
|
except:
|
||||||
|
e = sys.exc_info()[0]
|
||||||
print e
|
print e
|
||||||
exit(exit_code)
|
exit(exit_code)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue