Skip to content

Commit

Permalink
Move the moderation error to the base classes
Browse files Browse the repository at this point in the history
  • Loading branch information
Flagro committed Nov 8, 2024
1 parent 8fe5025 commit 27c58c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 2 additions & 0 deletions bot/models/base_moderation.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
class ModerationError(Exception):
pass
4 changes: 0 additions & 4 deletions bot/rp_bot/ai_agent/moderation.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
import io


class ModerationError(Exception):
pass


def moderate_image(in_memory_image_stream: io.BytesIO) -> bool:
"""
Moderates the image and returns True if the image is safe
Expand Down

0 comments on commit 27c58c5

Please sign in to comment.