From a28f016b8a500bb91b61182218d145ac97c4dc72 Mon Sep 17 00:00:00 2001 From: Damien De Paoli Date: Fri, 26 Sep 2025 19:30:29 +1000 Subject: [PATCH] when viewing, there is no path and not needed for viewing anyway --- states.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/states.py b/states.py index 2dcf244..3a14d9f 100644 --- a/states.py +++ b/states.py @@ -278,13 +278,15 @@ class States(PA): last_used=datetime.now(pytz.utc) # set the prefix based on path + path=None if self.path_type == 'Storage': path = SettingsSPath() elif self.path_type == 'Import': path = SettingsIPath() elif self.path_type == 'Bin': path = SettingsRBPath() - self.prefix = SymlinkName(self.path_type,path,path+'/') + if path: + self.prefix = SymlinkName(self.path_type,path,path+'/') # now save pref if not pref: