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: