Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gajim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Weblate
gajim
Commits
a0fea76f
Commit
a0fea76f
authored
15 years ago
by
Alexander Cherniuk
Browse files
Options
Downloads
Patches
Plain Diff
BaseException.message is deprecated since 2.6. Fixes #5465
parent
684f45b1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/command_system/errors.py
+3
-1
3 additions, 1 deletion
src/command_system/errors.py
with
3 additions
and
1 deletion
src/command_system/errors.py
+
3
−
1
View file @
a0fea76f
...
...
@@ -20,13 +20,15 @@ class BaseError(Exception):
"""
def
__init__
(
self
,
message
,
command
=
None
,
name
=
None
):
self
.
message
=
message
self
.
command
=
command
self
.
name
=
name
if
command
and
not
name
:
self
.
name
=
command
.
first_name
super
(
BaseError
,
self
).
__init__
(
message
)
super
(
BaseError
,
self
).
__init__
()
class
DefinitionError
(
BaseError
):
"""
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment