Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import ctypes
class PyperclipException(RuntimeError):
pass
class PyperclipWindowsException(PyperclipException):
def __init__(self, message):
message += " ({0})".format(ctypes.WinError())
super(PyperclipWindowsException, self).__init__(message)
def __call__(self, *args, **kwargs):
raise PyperclipException(EXCEPT_MSG)