From 16942303133cb4e6be76d4d33a211d1e0ce2ea38 Mon Sep 17 00:00:00 2001 From: Tom Clegg Date: Mon, 28 Nov 2016 13:46:10 -0500 Subject: [PATCH] 10586: Fix misuse of "!=" to mean "is not". --- sdk/python/arvados/keep.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/python/arvados/keep.py b/sdk/python/arvados/keep.py index 17f691306e..e331621cd9 100644 --- a/sdk/python/arvados/keep.py +++ b/sdk/python/arvados/keep.py @@ -599,7 +599,7 @@ class KeepClient(object): try: locator, copies = self.do_task(service, service_root) except Exception as e: - if e != self.TaskFailed: + if e is not self.TaskFailed: _logger.exception("Exception in KeepWriterThread") self.queue.write_fail(service) else: -- 2.30.2