Skip to content
Browse files

Don't bail if there's no objects file.

  • Loading branch information...
1 parent 2fa5bd3 commit 814f659c80b80c059ce1c51b09a6a4c65433bce0 @ericholscher ericholscher committed
Showing with 5 additions and 1 deletion.
  1. +5 −1 readthedocs/projects/tasks.py
View
6 readthedocs/projects/tasks.py
@@ -463,7 +463,11 @@ def update_intersphinx(version_pk):
version_data['project'] = project
version = Version(**version_data)
- object_file = version.project.find('objects.inv', version.slug)[0]
+ try:
+ object_file = version.project.find('objects.inv', version.slug)[0]
+ except IndexError, e:
+ print "Failed to find objects file"
+ return None
path = version.project.rtd_build_path(version.slug)
if not path:
log.warning("%s has no path" % version)

0 comments on commit 814f659

Please sign in to comment.
Something went wrong with that request. Please try again.