Skip to content

Commit 2d5b3b5

Browse files
author
davidcorteso
committed
Fixed exception print statement
1 parent 792ea82 commit 2d5b3b5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

fidimag/micro/dmi.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,9 @@ def __init__(self, D, name='DMI', dmi_type='bulk', dmi_vector=None):
8989
types = ['bulk', 'interfacial', 'D_n', 'C_n', 'D_2d', 'custom']
9090
if self.dmi_type not in types:
9191
raise Exception(
92-
"Unsupported DMI type: {}, " +
93-
"available options:\n {}".format(self.dmi_type, *types)
94-
)
92+
("Unsupported DMI type: {}, "
93+
"available options:\n {}").format(self.dmi_type, str(types))
94+
)
9595

9696

9797
# if self.dmi_type == 'D_n' or self.dmi_type == 'C_n':

0 commit comments

Comments
 (0)