Skip to content

Commit bb7d012

Browse files
maxzhengswaroopch
authored andcommitted
Catch Exception instead of using bare except
1 parent e0ba95a commit bb7d012

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

programs/more_decorator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def wrapper_function(*args, **kwargs):
1212
for attempt in range(1, MAX_ATTEMPTS + 1):
1313
try:
1414
return f(*args, **kwargs)
15-
except:
15+
except Exception:
1616
log.exception("Attempt %s/%s failed : %s",
1717
attempt,
1818
MAX_ATTEMPTS,

0 commit comments

Comments
 (0)