Skip to content

Commit e70f73b

Browse files
committed
Don't depend or specific data
We are catching all exceptions here, but we are depending on self.project and self.version be correctly returned from the api. This doesn't always happens, and it's raising another error.
1 parent e43c8b4 commit e70f73b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

readthedocs/projects/tasks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -390,8 +390,8 @@ def run(
390390
'stack': True,
391391
'tags': {
392392
'build': build_pk,
393-
'project': self.project.slug,
394-
'version': self.version.slug,
393+
'project': self.project.slug if self.project else None,
394+
'version': self.version.slug if self.version else None,
395395
},
396396
},
397397
)

0 commit comments

Comments
 (0)