Skip to content

Commit f209272

Browse files
committed
allow none product plot
1 parent 0e6a27a commit f209272

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

web/survey/views.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,8 @@ def detection_products(request):
191191
tarfile_write(tar, f'{name}_mask.fits', product.mask)
192192
tarfile_write(tar, f'{name}_chan.fits', product.chan)
193193
tarfile_write(tar, f'{name}_spec.txt', product.spec)
194-
tarfile_write(tar, f'{name}_plot.png', product.plot)
194+
if product.plot is not None:
195+
tarfile_write(tar, f'{name}_plot.png', product.plot)
195196

196197
data = fh.getvalue()
197198
size = len(data)

0 commit comments

Comments
 (0)