Skip to content

Commit 85b27bd

Browse files
committed
FIX: Ensure only google_crc32c warning is caught
1 parent a0a6317 commit 85b27bd

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

octue/cloud/storage/client.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
from octue.utils.encoders import OctueJSONEncoder
2222

2323
with warnings.catch_warnings():
24-
warnings.simplefilter("ignore")
24+
warnings.filterwarnings("ignore", category=RuntimeWarning, module="google_crc32c")
2525
from google_crc32c import Checksum
2626

2727
logger = logging.getLogger(__name__)

octue/mixins/hashable.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import warnings
55

66
with warnings.catch_warnings():
7-
warnings.simplefilter("ignore")
7+
warnings.filterwarnings("ignore", category=RuntimeWarning, module="google_crc32c")
88
from google_crc32c import Checksum
99

1010

octue/resources/datafile.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
from octue.utils.metadata import METADATA_FILENAME, UpdateLocalMetadata, load_local_metadata_file
2828

2929
with warnings.catch_warnings():
30-
warnings.simplefilter("ignore")
30+
warnings.filterwarnings("ignore", category=RuntimeWarning, module="google_crc32c")
3131
from google_crc32c import Checksum
3232

3333

0 commit comments

Comments
 (0)