Skip to content

Commit

Permalink
Allow RebootNow as an exception class name.
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyandrewmeyer committed Oct 11, 2023
1 parent 9253398 commit 28063d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ops/testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -1882,7 +1882,7 @@ class _Secret:
grants: Dict[int, Set[str]] = dataclasses.field(default_factory=dict)


class RebootNow(Exception):
class RebootNow(Exception): # noqa
"""Raised when the machine would reboot.
When :meth:`ops.Unit.reboot` is called with ``now=True`` in a machine charm, the
Expand Down

0 comments on commit 28063d5

Please sign in to comment.