Skip to content

Commit

Permalink
catch correct exception
Browse files Browse the repository at this point in the history
resolves #98
  • Loading branch information
prolic committed Aug 5, 2021
1 parent 4de2eb6 commit ed8d18b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Driver/PhpAmqpLib/Queue.php
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ public function consume(
while ($this->channel->getResource()->is_consuming()) {
$this->channel->getResource()->wait(null, false, $readTimeout);
}
} catch (\Throwable $e) {
} catch (\Exception $e) {
throw Exception\QueueException::fromPhpAmqpLib($e);
}
}
Expand Down

0 comments on commit ed8d18b

Please sign in to comment.