- 04 Jun, 2018 3 commits
-
-
Robin Obůrka authored
-
Robin Obůrka authored
I found that any exception raised from generator ends with StopIteration at next next() call. So, the solution wasn't able to provide bulletproof solution for unexpected errors. This solution uses some other nice-to-look-at shortcut to not duplicate code that is based on closures. I'm able to protect in-out boxes against unexpected errors. I'm not able to do the same for out-only boxes based on generators, but it is better than nothing. Boxes generating messages should know what they are doing, so they shouldn't need so much effort.
-
Robin Obůrka authored
-
- 31 May, 2018 1 commit
-
-
Robin Obůrka authored
-
- 26 May, 2018 1 commit
-
-
Robin Obůrka authored
-
- 25 May, 2018 7 commits
-
-
Robin Obůrka authored
-
Robin Obůrka authored
-
Robin Obůrka authored
-
Robin Obůrka authored
-
Robin Obůrka authored
-
Robin Obůrka authored
-
Robin Obůrka authored
-
- 23 May, 2018 8 commits
-
-
Robin Obůrka authored
-
Robin Obůrka authored
-
Robin Obůrka authored
TODO: Will be nice to transform it into variable with error code.
-
Robin Obůrka authored
The LoopFail exception will by eaten by except Exception, but I want to be able to distinguish between broken input and broken output error in logs.
-
Robin Obůrka authored
-
Robin Obůrka authored
I need to re-raise it otherwise it will be eaten by except Exception.
-
Robin Obůrka authored
-
Robin Obůrka authored
-
- 22 May, 2018 4 commits
-
-
Robin Obůrka authored
-
Robin Obůrka authored
-
Robin Obůrka authored
-
Robin Obůrka authored
-
- 21 May, 2018 16 commits
-
-
Robin Obůrka authored
-
Robin Obůrka authored
-
Robin Obůrka authored
-
Robin Obůrka authored
Else branch for generator shouldn't be inside "main" while. It ignores StopIteration and re-run generator again and again.
-
Robin Obůrka authored
-
Robin Obůrka authored
-
Robin Obůrka authored
-
Robin Obůrka authored
I use the same hack as in sn.SN itself. It doesn't work with mock from some reason.
-
Robin Obůrka authored
-
Robin Obůrka authored
I will need to generate some resources in env_data that has informations in sn_main function and I don't want to need to pass them to _sn_main_loop. This could be the way to avoid it.
-
Robin Obůrka authored
-
Robin Obůrka authored
-
Robin Obůrka authored
-
Robin Obůrka authored
-
Robin Obůrka authored
-
Robin Obůrka authored
-