diff options
| author | tassaron | 2017-06-06 20:50:53 -0400 |
|---|---|---|
| committer | tassaron | 2017-06-06 20:50:53 -0400 |
| commit | c946133da99a3bb1bf3565a19a12c641c8f77ed9 (patch) | |
| tree | 4d919146da88944bef5f5bc6b5e74b05636b1c3f /components/__base__.py | |
| parent | 231af74ea2b247bd73fcdfc44657b7fea2ab1620 (diff) | |
changed video init to use keywords
Diffstat (limited to 'components/__base__.py')
| -rw-r--r-- | components/__base__.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/components/__base__.py b/components/__base__.py index 94ac6f2..4fdf31f 100644 --- a/components/__base__.py +++ b/components/__base__.py @@ -84,3 +84,13 @@ class Component: def reset(self): self.canceled = False ''' + +class BadComponentInit(Exception): + def __init__(self, arg, name): + string = \ +'''################################ +Mandatory argument "%s" not specified + in %s instance initialization +###################################''' + print(string % (arg, name)) + quit() |
