Tech debt: "except Exception" present in codebase

Bug #1346963 reported by Ed Cranford
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Solum
Triaged
Wishlist
Unassigned

Bug Description

We might like to address the instances of "except Exception" in our codebase, opting for more specific exceptions where applicable.

  ~/Openstack/solum $ grep -r except.Exception *
  functionaltests/api/base.py: except Exception:
  solum/api/handlers/pipeline_handler.py: except Exception as missing_exc:
  solum/common/catalog.py: except Exception:
  solum/common/exception.py: except Exception as e:
  solum/common/exception.py: except Exception as excp:
  solum/openstack/common/config/generator.py: except Exception as e:
  solum/openstack/common/config/generator.py: except Exception:
  solum/openstack/common/db/sqlalchemy/session.py: except Exception as e:
  solum/openstack/common/db/sqlalchemy/session.py: except Exception as ex:
  solum/openstack/common/db/sqlalchemy/test_migrations.py: except Exception:
  solum/openstack/common/db/sqlalchemy/utils.py: except Exception:
  solum/openstack/common/excutils.py: except Exception:
  solum/openstack/common/excutils.py: except Exception as exc:
  solum/openstack/common/fileutils.py: except Exception:
  ~/Openstack/solum $

Most of these are in openstack/common so we may need to pass some changes upstream.

Tags: tech-debt
Adrian Otto (aotto)
tags: added: tech-debt
summary: - "except Exception" present in codebase
+ Tech debt: "except Exception" present in codebase
Changed in solum:
importance: Undecided → Wishlist
status: New → Triaged
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.