It was added to nim version 2

<https://github.com/nim-lang/Nim/issues/19580>

>From the changelog fo v2:

  * If no exception or any exception deriving from Exception but not Defect or 
CatchableError given in except, a `warnBareExcept` warning will be triggered.



So:
    
    
    when NimVersion >= "1.9.1"
    
    
    Run

Reply via email to