Bug 40149 - Avoid except Exception without context in App Center functions
Avoid except Exception without context in App Center functions
Status: RESOLVED WONTFIX
Product: UCS
Classification: Unclassified
Component: App Center
UCS 4.2
Other Linux
: P5 normal (vote)
: ---
Assigned To: App Center maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2015-12-01 13:59 CET by Dirk Wiesenthal
Modified: 2020-07-03 20:54 CEST (History)
2 users (show)

See Also:
What kind of report is it?: Development Internal
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional): Cleanup, Error handling
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Wiesenthal univentionstaff 2015-12-01 13:59:37 CET
try:
  ...
exceot Exception as e:
  debug(str(e))

may not help depending on the error message. We should print the whole traceback.

This is a problem in the old App Center code (non-docker)
Comment 1 Florian Best univentionstaff 2016-04-13 09:06:32 CEST
Bug #41043 demonstrates very nicely that one never should catch every exception.
Comment 2 Ingo Steuwer univentionstaff 2020-07-03 20:54:07 CEST
This issue has been filed against UCS 4.2.

UCS 4.2 is out of maintenance and many UCS components have changed in later releases. Thus, this issue is now being closed.

If this issue still occurs in newer UCS versions, please use "Clone this bug" or reopen it and update the UCS version. In this case please provide detailed information on how this issue is affecting you.