Skip to content

Commit

Permalink
Merge pull request #95 from opoplawski/args
Browse files Browse the repository at this point in the history
Fix args handling in InfoException
  • Loading branch information
SchoolGuy committed Sep 9, 2023
2 parents 87fc322 + 4f5810f commit 0cc3984
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions koan/cexceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,11 @@ class InfoException(Exception):
Custom exception for tracking of fatal errors.
"""

def __init__(self, value, **args):
self.value = value % args
def __init__(self, value, *args):
if args:
self.value = value % args
else:
self.value = value
self.from_koan = 1

def __str__(self):
Expand Down

0 comments on commit 0cc3984

Please sign in to comment.