Skip to content

Commit 0d4c40e

Browse files
authored
Update core.py - remove try/except in the cache loading
1 parent 5ebcca0 commit 0d4c40e

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

gemlite/core.py

+3-5
Original file line numberDiff line numberDiff line change
@@ -426,11 +426,9 @@ def cache_config(filename, prune_keys = ['M', 'N', 'K', 'group_size', 'elements_
426426
@staticmethod
427427
def load_config(filename):
428428
global GEMLITE_TRITON_CONFIG_CACHE
429-
try:
430-
with open(filename) as json_file:
431-
GEMLITE_TRITON_CONFIG_CACHE = json.load(json_file)
432-
except:
433-
pass
429+
with open(filename) as json_file:
430+
GEMLITE_TRITON_CONFIG_CACHE = json.load(json_file)
431+
434432

435433
###################################################################################################################################
436434
###################################################################################################################################

0 commit comments

Comments
 (0)