Skip to content
This repository has been archived by the owner on Jun 5, 2023. It is now read-only.

Job class should throw an exception if it can't load the class #26

Closed
robbiehudson opened this issue Feb 26, 2010 · 4 comments
Closed
Labels

Comments

@robbiehudson
Copy link

The Job class perform method should throw an exception if it can't load the worker class. At the moment safe_str_to_class returns NoneType which then causes an error which doesn't make it immediately obvious what the problem is.

@binarymatt
Copy link
Owner

hopefully I will get to work on this sometime today

@yashh
Copy link
Contributor

yashh commented Mar 3, 2010

I think the safe_str_to_class (or) my_import should raise a error and fail with a message that pyres could n't import your Task Class. Try setting your PYTHONPATH or DJANGO settings variable.

@binarymatt
Copy link
Owner

ok, i've put a first stab up on my repository in a branch named import_error. Right now all the tests pass, but I am going to run through a smoke test tonight or tomorrow.

@binarymatt
Copy link
Owner

this has been pushed up into master

This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants