Skip to content

Commit

Permalink
[Minor] Flake8 is Grumpy
Browse files Browse the repository at this point in the history
  • Loading branch information
Rixxan committed Apr 22, 2024
1 parent f3fe146 commit 96c78da
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions myNotebook.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,10 @@ def paste(self) -> None:
img = ImageGrab.grabclipboard()
if img:
# Hijack existing translation, yes it doesn't exactly match here.
# LANG: Generic error prefix - following text is from Frontier auth service;
messagebox.showwarning(tr.tl('Error'),
tr.tl('Cannot paste non-text content.')) # LANG: Can't Paste Images or Files in Text
messagebox.showwarning(
tr.tl('Error'), # LANG: Generic error prefix - following text is from Frontier auth service;
tr.tl('Cannot paste non-text content.') # LANG: Can't Paste Images or Files in Text
)
return
text = self.clipboard_get()
if self.selection_present() and text:
Expand Down

0 comments on commit 96c78da

Please sign in to comment.