Skip to content

Commit

Permalink
some microfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pomponchik committed Jul 15, 2024
1 parent 4f65d1a commit 7df0dc8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cantok/tokens/default_token.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def cancelled(self) -> bool:
@cancelled.setter
def cancelled(self, new_value: bool) -> None:
if new_value == True:
raise self.raise_superpower_exception()
self.raise_superpower_exception()

def keep_on(self) -> bool:
return True
Expand All @@ -33,5 +33,4 @@ def is_cancelled(self, direct: bool = True) -> bool:
return False

def cancel(self) -> 'AbstractToken':
raise self.raise_superpower_exception()
raise self.exception('You cannot cancel a default token.')
self.raise_superpower_exception()

0 comments on commit 7df0dc8

Please sign in to comment.