Skip to content

Commit e4762f9

Browse files
shnizzedymgxd
andauthored
💬 Simplify warning
Co-authored-by: Mathias Goncalves <[email protected]>
1 parent a08ee57 commit e4762f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: nipype/utils/draw_gantt_chart.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def create_event_dict(start_time, nodes_list):
7272
# Populate dictionary
7373
if events.get(start_delta):
7474
err_msg = "Event logged twice or events started at exact same time!"
75-
warn(str(KeyError(err_msg)), category=Warning)
75+
warn(err_msg, category=Warning)
7676
events[start_delta] = start_node
7777
events[finish_delta] = finish_node
7878

0 commit comments

Comments
 (0)