DevClad-Inc / devclad

Exception caught is very general PYL-W0703
Anti-pattern
Major
2 years ago2 years old
Catching too general exception Exception
45def assign_matches_this_week():
46    try:
47        return assign()
48    except Exception as e:49        print(e)
50        rollbar.report_message("assign_matches_this_week failed")
51        return False
Catching too general exception Exception
23        for scheduleinfo in schedules:
24            try:
25                schedule(**scheduleinfo)
26            except Exception as e:27                print(e)