Skip to content

Commit

Permalink
Merge pull request #219 from 42-AI/quentin/42a-181-day03ex01-to-excep…
Browse files Browse the repository at this point in the history
…tion-or-not-to

feat: add error handling in the subject

Add of an sentence about error handling. Nothing particular to say about it
  • Loading branch information
madvid authored Mar 14, 2022
2 parents a8f6244 + b10bef3 commit 1a1cddb
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 1 deletion.
Binary file modified build/module00.pdf
Binary file not shown.
Binary file modified build/module01.pdf
Binary file not shown.
Binary file modified build/module02.pdf
Binary file not shown.
Binary file modified build/module03.pdf
Binary file not shown.
Binary file modified build/module04.pdf
Binary file not shown.
2 changes: 2 additions & 0 deletions module03/subject/en.subject.tex
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,8 @@ \section*{Instructions}
\item \texttt{display(array)}: takes a numpy array as an argument and displays the corresponding RGB image.
\end{itemize}

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.

\hint{You can use the library of your choice for this exercise,
but converting the image to a numpy array is mandatory.
The goal of this exercise is to dispense with the technicality of loading and displaying images,
Expand Down
2 changes: 1 addition & 1 deletion version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v3.0.2
v3.0.4

0 comments on commit 1a1cddb

Please sign in to comment.