Try and Execption Doesn't support
can you please upgrade this library for a try and exception?

And how would you express try-except statements in a flowchart? AFAIK, I’m afraid that there’s not a standard or well-known pattern for errors handling in flowcharts. So show me a example or I will keep this open until someone can figure it out.
x=0
try:
print(x)
except:
print("An exception occurred")
Diagram Code : op2=>operation: try: print(x) except: print('An exception occurred')
Actual Graph

it's simple example of try and exception in python
@nikhiltree
Diagram Code : op2=>operation: try: print(x) except: print('An exception occurred')
Actual Graph
I guess it’s the current running result. And by
And how would you express try-except statements in a flowchart? AFAIK, I’m afraid that there’s not a standard or well-known pattern for errors handling in flowcharts. So show me a example or I will keep this open until someone can figure it out.
I mean what’s your expected diagram (a correction) for it?
you can show a flow diagram like the above picture(consider try and except like if and else statements)
say, an example:
foo = get_foo()
try:
c = foo.read()
print(c)
except:
print("failed")
foo.close()
to express it in a flowchart, my options are:
- as your illustration, missing start of try:
- not clear for the transferring point (this looks pretty good, but I disapprove of it because I think it's misleading, for the fact that a program will not jump to the except scope from a "try" line):
- to express what a try-except do clearly, I have to make it complex:
And we are not even considering the multi-excepts cases which will make things increasingly complex.
Thanks, @cdfmlr for your explanation please let me know if you will update this library for solving this type of problem in the future. I am very glad to use this library.
Thanks, I will do further research on it later, maybe later this month. And I guess a refactor is required to implement this feature (the early design of this lib is horrible 🤦♂️) which should take a bit of time.
You are doing great @cdfmlr.