do not raise BaseException
This commit is contained in:
@@ -15,7 +15,7 @@ for i, x in enumerate(sys.argv):
|
||||
VERSION = sys.argv[i+1]
|
||||
break
|
||||
else:
|
||||
raise BaseException('no version')
|
||||
raise Exception('no version')
|
||||
|
||||
electrum = os.path.abspath(".") + "/"
|
||||
block_cipher = None
|
||||
|
||||
@@ -8,7 +8,7 @@ for i, x in enumerate(sys.argv):
|
||||
cmdline_name = sys.argv[i+1]
|
||||
break
|
||||
else:
|
||||
raise BaseException('no name')
|
||||
raise Exception('no name')
|
||||
|
||||
PYTHON_VERSION = '3.5.4'
|
||||
PYHOME = 'c:/python' + PYTHON_VERSION
|
||||
|
||||
@@ -23,7 +23,7 @@ for p in sys.stdin.read().split():
|
||||
try:
|
||||
data = requests.get("https://pypi.org/pypi/{}/{}/json".format(p, v)).json()["info"]
|
||||
except ValueError:
|
||||
raise BaseException("Package could not be found: {}=={}".format(p, v))
|
||||
raise Exception("Package could not be found: {}=={}".format(p, v))
|
||||
try:
|
||||
for r in data["requires_dist"]:
|
||||
if ";" not in r:
|
||||
|
||||
@@ -41,7 +41,7 @@ for k, n in files.items():
|
||||
string = re.sub("<div id=\"%s\">(.*?)</div>"%k, '', string, flags=re.DOTALL + re.MULTILINE)
|
||||
continue
|
||||
if os.system("gpg --verify %s"%sigpath) != 0:
|
||||
raise BaseException(sigpath)
|
||||
raise Exception(sigpath)
|
||||
string = string.replace("##link_%s##"%k, link)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user