diff options
| author | Christian Breunig <christian@breunig.cc> | 2024-06-27 15:40:23 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-27 15:40:23 +0200 |
| commit | da1515c704e5170cdec420bbd7ce0e4cdb4da868 (patch) | |
| tree | a67f8ff4fbded2079ecd470667386df7e1078a1b /python/vyos/base.py | |
| parent | b3b1d59d86af510c454da446f013b514389f5c7f (diff) | |
| parent | 5502a75b1747caf94e2b69982c89088281c8ca1f (diff) | |
| download | veeos-1x-da1515c704e5170cdec420bbd7ce0e4cdb4da868.tar.gz veeos-1x-da1515c704e5170cdec420bbd7ce0e4cdb4da868.zip | |
Merge pull request #3692 from jestabro/revise-migration
T6007: revise migration system
Diffstat (limited to 'python/vyos/base.py')
| -rw-r--r-- | python/vyos/base.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/python/vyos/base.py b/python/vyos/base.py index 054b1d837..ca96d96ce 100644 --- a/python/vyos/base.py +++ b/python/vyos/base.py @@ -63,3 +63,10 @@ class ConfigError(Exception): message = fill(message, width=72) # Call the base class constructor with the parameters it needs super().__init__(message) + +class MigrationError(Exception): + def __init__(self, message): + # Reformat the message and trim it to 72 characters in length + message = fill(message, width=72) + # Call the base class constructor with the parameters it needs + super().__init__(message) |
