diff --git a/Builder/IISMainHandler/build.txt b/Builder/IISMainHandler/build.txt index e78e423..0da6a13 100644 --- a/Builder/IISMainHandler/build.txt +++ b/Builder/IISMainHandler/build.txt @@ -1 +1 @@ -627 \ No newline at end of file +630 \ No newline at end of file diff --git a/Builder/IISUploadHandler/build.txt b/Builder/IISUploadHandler/build.txt index e24b797..e8930b6 100644 --- a/Builder/IISUploadHandler/build.txt +++ b/Builder/IISUploadHandler/build.txt @@ -1 +1 @@ -361 \ No newline at end of file +364 \ No newline at end of file diff --git a/ImportConsole/ShallerDBProcessor.cs b/ImportConsole/ShallerDBProcessor.cs index c434de2..6e06776 100644 --- a/ImportConsole/ShallerDBProcessor.cs +++ b/ImportConsole/ShallerDBProcessor.cs @@ -160,7 +160,14 @@ namespace FLocal.ImportConsole { if(i%1000 == 0) { Console.Write("[" + (int)(i/1000) + "]"); } - Dictionary data = DictionaryConverter.FromDump(line); + Dictionary data; + try { + data = DictionaryConverter.FromDump(line); + } catch(Exception e) { + Console.Error.WriteLine("Error while trying to parse line: " + e.GetType().FullName + ": " + e.Message); + Console.Error.WriteLine(e.StackTrace); + continue; + } int postId = int.Parse(data["Number"]); try { if(inserts.ContainsKey(postId) || Config.instance.mainConnection.GetCountByConditions(Post.TableSpec.instance, new ComparisonCondition(Post.TableSpec.instance.getIdSpec(), ComparisonType.EQUAL, postId.ToString())) > 0) {