File tree 1 file changed +7
-4
lines changed
1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 16
16
import threading
17
17
import time
18
18
from .utils import write_to_file
19
- from planet .api .exceptions import RequestCancelled
19
+ from planet .api .exceptions import ( RequestCancelled , NoPermission )
20
20
try :
21
21
import Queue as queue
22
22
except ImportError :
@@ -466,9 +466,12 @@ def _task(self, t):
466
466
def _do (self , task ):
467
467
func = self ._write_tracker (task , None )
468
468
writer = write_to_file (self ._dest , func , overwrite = False )
469
- self ._downloads += 1
470
- self ._results .put ((task , {'type' : 'quad' },
471
- self ._client .download_quad (task , writer )))
469
+ try :
470
+ self ._results .put ((task , {'type' : 'quad' },
471
+ self ._client .download_quad (task , writer )))
472
+ self ._downloads += 1
473
+ except NoPermission :
474
+ _info ('No download permisson for %s, skipping' , task ['id' ])
472
475
473
476
474
477
class _MosaicDownloader (_Downloader ):
You can’t perform that action at this time.
0 commit comments