Skip to content

Commit

Permalink
2.1.8
Browse files Browse the repository at this point in the history
Fixes an error when handleing an error that occurs when moving files.
Restored default templates for new users.
  • Loading branch information
Stonepaw committed Jul 23, 2012
1 parent 0386933 commit fab69df
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Package.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Name=Library Organizer
Author=Stonepaw
Version=2.1.7
Version=2.1.8
Description=A file and folder organizer with GUI that helps build you file and folder paths.
Image=lopackagelogo.png
KeepFiles=losettingsx.dat
Expand Down
7 changes: 5 additions & 2 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
2.1.7
Fixed saving empty illegal characters
2.1.8
Fixes an error when handleing an error that occurs when moving files.
Restored default templates for new users.


2 changes: 1 addition & 1 deletion lobookmover.py
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,7 @@ def create_folder(self, folder_path, book):
Directory.CreateDirectory(folder_path)

except (IOException, ArgumentException, ArgumentNullException, PathTooLongException, DirectoryNotFoundException, NotSupportedException), ex:
self.logger.Add("Failed to create folder", folder_path, "Book " + self.report_book_name + " was not moved.\nThe error was: " + str(type(ex)) + ": " + ex.message)
self.logger.Add("Failed to create folder", folder_path, "Book " + self.report_book_name + " was not moved.\nThe error was: " + str(type(ex)) + ": " + ex.Message)
return MoveResult.Failed

return MoveResult.Success
Expand Down
3 changes: 3 additions & 0 deletions losettings.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,9 @@ def load_profiles(file_path):
#Just in case
profiles["Default"] = Profile()
profiles["Default"].Name = "Default"
#Some default templates
profiles["Default"].FileTemplate = "{<series>}{ Vol.<volume>}{ #<number2>}{ (of <count2>)}{ ({<month>, }<year>)}"
profiles["Default"].FolderTemplate = "{<publisher>}\{<imprint>}\{<series>}{ (<startyear>{ <format>})}"

if not lastused:
lastused = [profiles.keys()[0]]
Expand Down

0 comments on commit fab69df

Please sign in to comment.