[Notes] [Git][BuildStream/buildstream][master] 2 commits: app.py: Handle exception thrown when recursion limit is exceeded



Title: GitLab

Agustin Benito Bethencourt pushed to branch master at BuildStream / buildstream

Commits:

1 changed file:

Changes:

  • buildstream/_frontend/app.py
    ... ... @@ -270,6 +270,10 @@ class App():
    270 270
     
    
    271 271
                 # Exit with the error
    
    272 272
                 self._error_exit(e)
    
    273
    +        except RecursionError:
    
    274
    +            click.echo("RecursionError: Depency depth is too large. Maximum recursion depth exceeded.",
    
    275
    +                       err=True)
    
    276
    +            sys.exit(-1)
    
    273 277
     
    
    274 278
             else:
    
    275 279
                 # No exceptions occurred, print session time and summary
    



  • [Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]