[Notes] [Git][BuildGrid/buildgrid][mablanch/36-fix-linting] cli.py: Ensure Python 3.5 compatibility



Title: GitLab

Martin Blanchard pushed to branch mablanch/36-fix-linting at BuildGrid / buildgrid

Commits:

1 changed file:

Changes:

  • app/cli.py
    ... ... @@ -60,9 +60,7 @@ class BuildGridCLI(click.MultiCommand):
    60 60
             try:
    
    61 61
                 mod = __import__(name='app.commands.cmd_{}'.format(name),
    
    62 62
                                  fromlist=['cli'])
    
    63
    -        except ModuleNotFoundError as e:
    
    64
    -            raise Exception(e)
    
    65
    -        except ImportError as e:
    
    63
    +        except ImportError:
    
    66 64
                 return None
    
    67 65
             return mod.cli
    
    68 66
     
    



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