krish-adi / barfi

Python Flow Based Programming environment that provides a graphical programming environment.
https://barfi.readthedocs.io
MIT License
672 stars 73 forks source link

[Bug] Creating cyclic connections raises exception incorrectly #23

Open GsLogiMaker opened 1 year ago

GsLogiMaker commented 1 year ago

Creating cyclical connections between nodes raises a TypeError because raise is invoked with a str, rather than an Exception. A custom Exception should be used for this.

Screenshot from 2023-09-21 11-17-59

Minimum Reproducing Project - https://github.com/GsLogiMaker/barfi_error_minimal_project/releases/tag/v0.0.0

GsLogiMaker commented 1 year ago

On a side note, I find it very ironic that the program raises an error in the process of raising an error. XD