Skip to content

Commit 2caa7db

Browse files
committed
fix exception string
1 parent e799a7e commit 2caa7db

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

OMPython/OMCSession.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -468,8 +468,7 @@ def __new__(cls, *args, **kwargs):
468468
cls = OMCPathCompatibilityWindows if os.name == 'nt' else OMCPathCompatibilityPosix
469469
self = cls._from_parts(args)
470470
if not self._flavour.is_supported:
471-
raise NotImplementedError("cannot instantiate %r on your system"
472-
% (cls.__name__,))
471+
raise NotImplementedError(f"cannot instantiate {cls.__name__} on your system")
473472
return self
474473

475474
def size(self) -> int:

0 commit comments

Comments
 (0)