diff options
author | Joshua Watt <jpewhacker@gmail.com> | 2019-09-26 12:53:57 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-09-27 13:02:06 +0100 |
commit | 9fb862685e5e5a2aa534bc25cab1e4158d708b40 (patch) | |
tree | bf2608f91854ba4bf4b32940835acd3abc4b4a1e | |
parent | 31a5111bcd0080a583d0d95fad3e09ae78bdf0fa (diff) | |
download | bitbake-9fb862685e5e5a2aa534bc25cab1e4158d708b40.tar.gz |
siggen: Fix attribute error when hashserver fails
The HashConnectionError class was moved to the client module and needs
to be updated.
[YOCTO #13537]
Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | lib/bb/siggen.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bb/siggen.py b/lib/bb/siggen.py index e047c217e..2b51967c0 100644 --- a/lib/bb/siggen.py +++ b/lib/bb/siggen.py @@ -440,7 +440,7 @@ class SignatureGeneratorUniHashMixIn(object): bb.debug((1, 2)[unihash == taskhash], 'Found unihash %s in place of %s for %s from %s' % (unihash, taskhash, tid, self.server)) else: bb.debug(2, 'No reported unihash for %s:%s from %s' % (tid, taskhash, self.server)) - except hashserv.HashConnectionError as e: + except hashserv.client.HashConnectionError as e: bb.warn('Error contacting Hash Equivalence Server %s: %s' % (self.server, str(e))) self.unitaskhashes[key] = unihash @@ -504,7 +504,7 @@ class SignatureGeneratorUniHashMixIn(object): bb.event.fire(bb.runqueue.taskUniHashUpdate(fn + ':do_' + task, new_unihash), d) else: bb.debug(1, 'Reported task %s as unihash %s to %s' % (taskhash, unihash, self.server)) - except hashserv.HashConnectionError as e: + except hashserv.client.HashConnectionError as e: bb.warn('Error contacting Hash Equivalence Server %s: %s' % (self.server, str(e))) finally: if sigfile: |