From ccfe934b6b52968c420bddce0f7d98248dc02718 Mon Sep 17 00:00:00 2001 From: anjakefala Date: Mon, 21 Oct 2024 12:09:48 -0700 Subject: [PATCH] [save-] warn if no save destination given #2580 --- visidata/save.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/visidata/save.py b/visidata/save.py index 7c93525a8..778632f7d 100644 --- a/visidata/save.py +++ b/visidata/save.py @@ -114,6 +114,10 @@ def saveSheets(vd, givenpath, *vsheets, confirm_overwrite=True): if not vsheets: # blank tuple vd.warning('no sheets to save') return + if not givenpath.name: + vd.warning('no save path given') + return + unloaded = [ vs for vs in vsheets if vs.rows is UNLOADED ] vd.sync(*vd.ensureLoaded(unloaded))