Skip to content

Commit 8bee68e

Browse files
committed
[dbc] Fix object has no attribute error
1 parent 1a489ed commit 8bee68e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

casc_extract/casc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ def get_url(self, url, headers=None):
538538
# try a random, different CDN host
539539
# TODO: clean this up
540540
# depending on how this gets called the cdn_host is buried in the build object
541-
search_hosts = self.cdn_host or self.build.cdn_host
541+
search_hosts = getattr(self, 'cdn_host', None) or getattr(self.build, 'cdn_host', None)
542542
if search_hosts:
543543
if len(search_hosts):
544544
cur_host = ''

0 commit comments

Comments
 (0)