Skip to content

Commit 6ba9b34

Browse files
committed
Make lengths longer
1 parent 3aeb66e commit 6ba9b34

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

readthedocs/projects/tasks.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1255,6 +1255,9 @@ def _update_intersphinx_data(version, path, commit):
12551255
:param commit: Commit that updated path
12561256
"""
12571257
object_file = os.path.join(path, 'objects.inv')
1258+
if not os.path.exists(object_file):
1259+
log.debug('No objects.inv, skipping intersphinx indexing.')
1260+
return
12581261

12591262
# These classes are copied from Sphinx
12601263
# https://git.io/fhFbI
@@ -1559,7 +1562,10 @@ def sync_callback(_, version_pk, commit, *args, **kwargs):
15591562
15601563
The first argument is the result from previous tasks, which we discard.
15611564
"""
1562-
fileify(version_pk, commit=commit)
1565+
try:
1566+
fileify(version_pk, commit=commit)
1567+
except Exception:
1568+
log.exception('Post sync tasks failed, not stopping build')
15631569

15641570

15651571
@app.task()

readthedocs/sphinx_domains/models.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,23 +40,23 @@ class SphinxDomain(TimeStampedModel):
4040
)
4141
name = models.CharField(
4242
_('Name'),
43-
max_length=255,
43+
max_length=4092,
4444
)
4545
display_name = models.CharField(
4646
_('Display Name'),
47-
max_length=255,
47+
max_length=4092,
4848
)
4949
type = models.CharField(
5050
_('Type'),
5151
max_length=255,
5252
)
5353
doc_name = models.CharField(
5454
_('Doc Name'),
55-
max_length=255,
55+
max_length=4092,
5656
)
5757
anchor = models.CharField(
5858
_('Anchor'),
59-
max_length=255,
59+
max_length=4092,
6060
)
6161
objects = RelatedProjectQuerySet.as_manager()
6262

0 commit comments

Comments
 (0)