summaryrefslogtreecommitdiff
path: root/apscheduler/util.py
diff options
context:
space:
mode:
Diffstat (limited to 'apscheduler/util.py')
-rw-r--r--apscheduler/util.py2
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