diff options
author | Curtis Vogt <curtis.vogt@invenia.ca> | 2014-03-07 11:00:47 -0600 |
---|---|---|
committer | Alex Grönholm <alex.gronholm@nextday.fi> | 2014-03-08 08:43:39 +0200 |
commit | a6a56328ac88049f42012c3d492f9d8c2b9c347e (patch) | |
tree | 9788a7b0acca250976ef4068dec5d291bb65ef19 /apscheduler/util.py | |
parent | 05141a0282516109e7092707ab73bdfda11465e0 (diff) | |
download | apscheduler-a6a56328ac88049f42012c3d492f9d8c2b9c347e.tar.gz |
Fixed issue in obj_to_ref when __module__ attribute doesn't exist.2.1
Diffstat (limited to 'apscheduler/util.py')
-rw-r--r-- | apscheduler/util.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apscheduler/util.py b/apscheduler/util.py index dcede4c..ffb3a55 100644 --- a/apscheduler/util.py +++ b/apscheduler/util.py @@ -162,8 +162,8 @@ def obj_to_ref(obj): """ Returns the path to the given object. """ - ref = '%s:%s' % (obj.__module__, get_callable_name(obj)) try: + ref = '%s:%s' % (obj.__module__, get_callable_name(obj)) obj2 = ref_to_obj(ref) if obj != obj2: raise ValueError |