Skip to content

Commit

Permalink
handle rows that are empty or None
Browse files Browse the repository at this point in the history
Co-authored-by: AJ Kerrigan <[email protected]>
  • Loading branch information
midichef and ajkerrigan authored Aug 26, 2023
1 parent edfec19 commit 715041b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion visidata/clipboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def pasteFromClipboard(vd, cols, rows):

@Sheet.api
def delete_row(sheet, rowidx):
if len(sheet.rows) == 0:
if not sheet.rows:
vd.fail("no row to delete")
if not sheet.defer:
oldrow = sheet.rows.pop(rowidx)
Expand Down

0 comments on commit 715041b

Please sign in to comment.