Files

12 lines
247 B
Python
Raw Permalink Normal View History

2019-08-04 15:26:35 +03:00
import ctypes
class PyperclipException(RuntimeError):
pass
class PyperclipWindowsException(PyperclipException):
def __init__(self, message):
message += " ({err})".format(err=ctypes.WinError())
super().__init__(message)