Skip to content

Commit

Permalink
Removal of unused exception
Browse files Browse the repository at this point in the history
  • Loading branch information
kodinkat committed Sep 27, 2024
1 parent f3f180e commit 970df3d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
if ( !defined( 'ABSPATH' ) ) {
exit;
} // Exit if accessed directly
use Random\RandomException;
use YahnisElsts\PluginUpdateChecker\v5\PucFactory;

/**
Expand Down Expand Up @@ -99,7 +98,7 @@ function dt_theme_load() {
$iv = password_hash( random_bytes_no_null( 16 ), PASSWORD_DEFAULT );
update_option( 'my_jwt_key', $iv );
define( 'JWT_AUTH_SECRET_KEY', $iv );
} catch ( RandomException | ValueError $e ) {
} catch ( ValueError $e ) {
dt_write_log( $e->getMessage() );
}
}
Expand All @@ -113,7 +112,6 @@ function dt_theme_load() {
*
* @param int $length
* @return string
* @throws RandomException
*
* @since 1.67.0
*/
Expand Down

0 comments on commit 970df3d

Please sign in to comment.