Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Better error handling #84

Closed
mkolar opened this issue Aug 26, 2019 · 1 comment
Closed

Better error handling #84

mkolar opened this issue Aug 26, 2019 · 1 comment
Labels
type: bug Something isn't working

Comments

@mkolar
Copy link
Member

mkolar commented Aug 26, 2019

Problem

We need to address error handling through pype. There are two issues:

One is complete user “un-friendliness”. Lot of errors ends up just as tracebacks printed to console (in better cases). For example running application on task on ftract that is not synced to avalon should end with error message saying so, not in “NoneType is not subscritable” or what.

Second is global error handling. We can utilize something like sys.excepthook to catch uncatched exceptions. At that point, try to collect logs from mongo and provide user with ability to report crash to us, or save it to archive and email it manually (default one for headless stuff like event-server)

[PYPE-494] created by ondrej
@mkolar
Copy link
Member Author

mkolar commented Sep 3, 2019

merged in #474. We shhould add keyboard handler to handle ctrl+z

import sys
def my_except_hook(exctype, value, traceback):
    if exctype == KeyboardInterrupt:
print "Handler code goes here"
    else:
sys.__excepthook__(exctype, value, traceback)
sys.excepthook = my_except_hook

by ondrej

@mkolar mkolar added type: bug Something isn't working LOW labels Apr 16, 2020
Tilix4 referenced this issue in Tilix4/OpenPype Mar 23, 2023
* Change: Pyblish Wait for pool futures to finish

* change futures key name

* black
Tilix4 referenced this issue in Tilix4/OpenPype Mar 24, 2023
* Change: Pyblish Wait for pool futures to finish

* change futures key name

* black
Tilix4 referenced this issue in Tilix4/OpenPype May 5, 2023
* Change: Pyblish Wait for pool futures to finish

* change futures key name

* black
Tilix4 referenced this issue in Tilix4/OpenPype Jun 1, 2023
* Change: Pyblish Wait for pool futures to finish

* change futures key name

* black
Tilix4 referenced this issue in Tilix4/OpenPype Oct 17, 2023
* Change: Pyblish Wait for pool futures to finish

* change futures key name

* black
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant