Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
satella
Manage
Activity
Members
Labels
Plan
Issues
1
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
public
satella
Commits
6d4530fe
Commit
6d4530fe
authored
5 years ago
by
Piotr Maślanka
Browse files
Options
Downloads
Patches
Plain Diff
fix test
parent
63d5f459
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
satella/exceptions.py
+4
-1
4 additions, 1 deletion
satella/exceptions.py
with
4 additions
and
1 deletion
satella/exceptions.py
+
4
−
1
View file @
6d4530fe
...
...
@@ -15,7 +15,8 @@ class CustomException(Exception):
1. Accept any number of arguments
2. Provide faithful __repr__ and a reasonable __str__
It passed all arguments that your exception received via super()
It passed all arguments that your exception received via super().
Just remember to actually pass these arguments in your inheriting classes!
"""
def
__init__
(
self
,
*
args
,
**
kwargs
):
super
().
__init__
(
*
args
)
...
...
@@ -156,6 +157,7 @@ class LockIsHeld(ResourceLocked):
"""
def
__init__
(
self
,
pid
):
super
().
__init__
(
pid
)
self
.
pid
=
pid
...
...
@@ -163,4 +165,5 @@ class ProcessFailed(BaseSatellaError):
"""
A process finished with other result code that it was requested
"""
def
__init__
(
self
,
rc
:
int
):
super
().
__init__
(
rc
)
self
.
rc
=
rc
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