Skip to content

Commit 1a1cddb

Browse files
authored
Merge pull request #219 from 42-AI/quentin/42a-181-day03ex01-to-exception-or-not-to
feat: add error handling in the subject Add of an sentence about error handling. Nothing particular to say about it
2 parents a8f6244 + b10bef3 commit 1a1cddb

File tree

7 files changed

+3
-1
lines changed

7 files changed

+3
-1
lines changed

build/module00.pdf

33 Bytes
Binary file not shown.

build/module01.pdf

26 Bytes
Binary file not shown.

build/module02.pdf

39 Bytes
Binary file not shown.

build/module03.pdf

289 Bytes
Binary file not shown.

build/module04.pdf

37 Bytes
Binary file not shown.

module03/subject/en.subject.tex

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,8 @@ \section*{Instructions}
283283
\item \texttt{display(array)}: takes a numpy array as an argument and displays the corresponding RGB image.
284284
\end{itemize}
285285

286+
You must handle errors, if the file passed as argument does not exist or if it can't be read as an image, with an appropriate message of your choice.
287+
286288
\hint{You can use the library of your choice for this exercise,
287289
but converting the image to a numpy array is mandatory.
288290
The goal of this exercise is to dispense with the technicality of loading and displaying images,

version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v3.0.2
1+
v3.0.4

0 commit comments

Comments
 (0)