1
0

do not raise BaseException

This commit is contained in:
SomberNight
2018-04-07 17:10:30 +02:00
parent 76e67daadd
commit 7b50790584
21 changed files with 53 additions and 53 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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:

View File

@@ -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)