Python Forum
Can I Limit Value used by python
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Can I Limit Value used by python
#10
(Feb-10-2022, 03:24 PM)buran Wrote: Note that on line 27 you have MaxSize=Value2 , not MinSize=Value2 like in the original code
Is it THAT HARD to debug an error like this?

Note that it is strange that you validate only valye3. Is it that any value for value is allowed? What if they supply something that cannot be converted to int - your script will crash.

Anyone using this Api is fully aware that they need to use an integer. Also the Max value is the only value I need to restrict as I don't want users changing the Autoscaling group to more than 10 instances.

Thanks for your help
Reply


Messages In This Thread
Can I Limit Value used by python - by pajd - Feb-09-2022, 01:47 PM
RE: Can I Limit Value used by python - by buran - Feb-09-2022, 02:10 PM
RE: Can I Limit Value used by python - by pajd - Feb-09-2022, 02:50 PM
RE: Can I Limit Value used by python - by buran - Feb-09-2022, 03:37 PM
RE: Can I Limit Value used by python - by pajd - Feb-09-2022, 03:53 PM
RE: Can I Limit Value used by python - by buran - Feb-09-2022, 04:44 PM
RE: Can I Limit Value used by python - by pajd - Feb-09-2022, 07:04 PM
RE: Can I Limit Value used by python - by pajd - Feb-10-2022, 02:08 PM
RE: Can I Limit Value used by python - by buran - Feb-10-2022, 03:24 PM
RE: Can I Limit Value used by python - by pajd - Feb-10-2022, 09:54 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How can I make this Python script add a limit to trades made with API? streetlaw 0 2,036 Oct-12-2018, 11:41 AM
Last Post: streetlaw
  Python - Limit Sentence Length to 10 Words - Text file dj99 2 5,238 Jul-21-2018, 02:24 PM
Last Post: dj99
  Error in Python 3.6 and how to limit decimal places Raptor88 6 9,950 Mar-18-2017, 05:02 AM
Last Post: Raptor88

Forum Jump:

User Panel Messages

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