File tree Expand file tree Collapse file tree 5 files changed +8
-8
lines changed Expand file tree Collapse file tree 5 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -207,7 +207,7 @@ min-public-methods=1
207
207
[EXCEPTIONS]
208
208
209
209
# Exceptions that will emit a warning when caught.
210
- overgeneral-exceptions =Exception
210
+ overgeneral-exceptions =builtins. Exception
211
211
212
212
213
213
[FORMAT]
Original file line number Diff line number Diff line change @@ -544,7 +544,7 @@ def rdt_interface():
544
544
"""
545
545
if cfg_rdt_iface != PQOS_API .current_iface ():
546
546
if PQOS_API .init (cfg_rdt_iface ):
547
- raise Exception ("Failed to initialize RDT interface!" )
547
+ raise RuntimeError ("Failed to initialize RDT interface!" )
548
548
549
549
log .info (f"RDT initialized with { cfg_rdt_iface .upper ()} interface." )
550
550
return True
@@ -615,11 +615,11 @@ def get_l3cdp_cfg():
615
615
if PQOS_API .reset (l3_cdp_cfg = l3cdp_cfg , l2_cdp_cfg = l2cdp_cfg , \
616
616
mba_cfg = mba_cfg ):
617
617
if l3cdp_cfg != "any" :
618
- raise Exception ("Failed to change L3 CDP state!" )
618
+ raise RuntimeError ("Failed to change L3 CDP state!" )
619
619
if l2cdp_cfg != "any" :
620
- raise Exception ("Failed to change L2 CDP state!" )
620
+ raise RuntimeError ("Failed to change L2 CDP state!" )
621
621
if mba_cfg != "any" :
622
- raise Exception ("Failed to change MBA BW state!" )
622
+ raise RuntimeError ("Failed to change MBA BW state!" )
623
623
624
624
log .info (f"RDT MBA BW { 'en' if PQOS_API .is_mba_bw_enabled () else 'dis' } abled." )
625
625
log .info (f"RDT L3 CDP { 'en' if PQOS_API .is_l3_cdp_enabled () else 'dis' } abled." )
Original file line number Diff line number Diff line change @@ -207,7 +207,7 @@ min-public-methods=1
207
207
[EXCEPTIONS]
208
208
209
209
# Exceptions that will emit a warning when caught.
210
- overgeneral-exceptions =Exception
210
+ overgeneral-exceptions =builtins. Exception
211
211
212
212
213
213
[FORMAT]
Original file line number Diff line number Diff line change @@ -146,7 +146,7 @@ def free_memory(ptr):
146
146
libc_path = ctypes .util .find_library ('c' )
147
147
148
148
if not libc_path :
149
- raise Exception ('Cannot find libc' )
149
+ raise OSError ('Cannot find libc' )
150
150
151
151
libc = ctypes .cdll .LoadLibrary (libc_path )
152
152
libc .free (ptr )
Original file line number Diff line number Diff line change @@ -206,7 +206,7 @@ min-public-methods=1
206
206
[EXCEPTIONS]
207
207
208
208
# Exceptions that will emit a warning when caught.
209
- overgeneral-exceptions =Exception
209
+ overgeneral-exceptions =builtins. Exception
210
210
211
211
212
212
[FORMAT]
You can’t perform that action at this time.
0 commit comments