Skip to content

Commit 9637b0f

Browse files
shnizzedymgxd
andcommitted
STY: Simplify warning
Co-authored-by: Mathias Goncalves <[email protected]>
1 parent 169c09e commit 9637b0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nipype/utils/draw_gantt_chart.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def create_event_dict(start_time, nodes_list):
6969
# Populate dictionary
7070
if events.get(start_delta):
7171
err_msg = "Event logged twice or events started at exact same time!"
72-
warn(str(KeyError(err_msg)), category=Warning)
72+
warn(err_msg, category=Warning)
7373
events[start_delta] = start_node
7474
events[finish_delta] = finish_node
7575

0 commit comments

Comments
 (0)