Skip to content

Commit

Permalink
remove unnecessary checks
Browse files Browse the repository at this point in the history
  • Loading branch information
MehmedGIT committed Mar 27, 2023
1 parent 2fc3856 commit 7835154
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ocrd_network/ocrd_network/processing_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,7 @@ def create_processing_message(job: DBProcessorJob) -> OcrdProcessingMessage:
async def push_processor_job(self, processor_name: str, data: PYJobInput) -> PYJobOutput:
""" Queue a processor job
"""
if not self.rmq_publisher or not self.rmq_publisher._connection or not self.rmq_publisher._channel:
self.log.error('RMQPublisher is not connected')
if not self.rmq_publisher:
raise Exception('RMQPublisher is not connected')

if processor_name not in self.processor_list:
Expand Down

0 comments on commit 7835154

Please sign in to comment.