Skip to content

Commit ac17a19

Browse files
committed
style
1 parent 8160ae9 commit ac17a19

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

‎_doc/competitions/2017_IA_hackathon/competition/program/evaluate.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,6 @@ def main_codalab_wrapper_multi_classification(fct, variables_name, argv, truth_f
269269

270270
if__name__=="__main__":
271271
iflen(sys.argv) <3:
272-
raiseException("bad arguments:{0}".format(sys.argv))
272+
raiseValueError("bad arguments:{0}".format(sys.argv))
273273
main_codalab_wrapper_multi_classification(
274274
AUC_multi_multi, ["orientation"], sys.argv)

‎_unittests/ut_data/test_wolf.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def test_wolf(self):
3131
ifnotos.path.exists(o):
3232
raiseFileNotFoundError(o)
3333
ifos.stat(outfile[0]).st_size<2000:
34-
raiseException("small size")
34+
raiseAssertionError("small size")
3535

3636
deftest_enumerate_wolf_xml_row(self):
3737
fLOG(

‎_unittests/ut_data/test_wolf_backup.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def test_wolf_backup(self):
2727
outfile= [os.path.join(temp, _) for_inos.listdir(temp)]
2828
self.assertTrue(len(outfile) !=0)
2929
ifos.stat(outfile[0]).st_size<1000000:
30-
raiseException("small size")
30+
raiseAssertionError("small size")
3131

3232

3333
if__name__=="__main__":

‎src/actuariat_python/data/elections.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ def elections_legislatives_bureau_vote(source=None, folder=".", fLOG=noLOG):
131131
withurllib.request.urlopen("http://www.nosdonnees.fr/") asf:
132132
url="http://www.nosdonnees.fr/storage/f/2013-03-05T184148/"
133133
iffisNone:
134-
raiseException(
134+
raiseRuntimeError(
135135
"Not sure we can continue. Pretty sure we should stop.")
136136
except (urllib.error.HTTPError, RemoteDisconnected): # pragma: no cover
137137
url="xd"

0 commit comments

Comments
(0)