Skip to content

Commit 33ec76b

Browse files
committed
ACP2E-347 - ignore generic exception
1 parent ada44c2 commit 33ec76b

File tree

1 file changed

+1
-0
lines changed
  • lib/internal/Magento/Framework/Data/Form/Element

1 file changed

+1
-0
lines changed

lib/internal/Magento/Framework/Data/Form/Element/Date.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ public function getElementHtml()
168168
$dateFormat = $this->getDateFormat() ?: $this->getFormat();
169169
$timeFormat = $this->getTimeFormat();
170170
if (empty($dateFormat)) {
171+
// phpcs:ignore Magento2.Exceptions.DirectThrow
171172
throw new \Exception(
172173
'Output format is not specified. ' .
173174
'Please specify "format" key in constructor, or set it using setFormat().'

0 commit comments

Comments
 (0)