def process(self):
        main_logger = logging.getLogger(config.main_logger_name)
        while True:
            notification = self.task_queue.get()
            try:
                sender = GCMPushSender(config.config, main_logger)
                sender.send_in_batch(notification)
                canonical_ids = sender.get_canonical_ids()
                if 0 > len(canonical_ids):
                    database.update_canonicals(canonical_ids)
                unregistered_devices = sender.get_unregistered_devices()
                if len(unregistered_devices) > 0:
                    database.update_unregistered_devices(unregistered_devices)
            except Exception:
                main_logger.exception("GcmNotificationProcessor failed to send notifications")
            finally:
                self.log_notifications([notification])
dataset/ETHPy150Open Nordeus/pushkin/pushkin/sender/senders.py/GcmNotificationSender.process/swapped operands of `>`