Python Forum
problem using custom exception handling in python
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
problem using custom exception handling in python
#3
Add a except ValueError: to go along with the other exceptions.

Note: if i_num < number: is checking the entered number is less 10, it should be checking for less than 1 based on the input requirements.
Reply


Messages In This Thread
RE: problem using custom exception handling in python - by Yoriz - Jul-03-2019, 08:49 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  custom exception dcr 1 278 Feb-17-2024, 08:19 PM
Last Post: Gribouillis
  I want to create custom charts in Python. js1152410 1 545 Nov-13-2023, 05:45 PM
Last Post: gulshan212
Question log.exception() without arguments in old Python versions? cthart 5 1,178 Nov-19-2022, 07:09 PM
Last Post: Gribouillis
Star python exception handling handling .... with traceback mg24 3 1,289 Nov-09-2022, 07:29 PM
Last Post: Gribouillis
  Handling pdf files with python. fuzzin 1 1,271 Jan-19-2022, 02:24 PM
Last Post: ThiefOfTime
  TicTacToe Game Add Exception Handling and Warning Function ShaikhShaikh 5 2,433 Nov-03-2021, 05:02 PM
Last Post: deanhystad
  Handling Python Fatal Error richajain1785 7 5,932 Oct-14-2021, 01:34 PM
Last Post: Tails86
  Problem with pexpect.exception.TimeOUT korenron 0 3,310 Apr-12-2021, 03:25 PM
Last Post: korenron
  Handling multi-input/output audio in python bor1904 4 3,608 Nov-04-2020, 08:25 AM
Last Post: CHLOVRL
  looking for a custom exception JarredAwesome 5 3,271 Sep-21-2020, 06:38 PM
Last Post: JarredAwesome

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020