]> www.wagner.pp.ru Git - oss/ljdump.git/commitdiff
handle missing .last properly
authorgreg <greg@7994a137-d0a5-da11-ade6-0050bffea3d9>
Mon, 26 Dec 2005 00:34:07 +0000 (00:34 +0000)
committergreg <greg@7994a137-d0a5-da11-ade6-0050bffea3d9>
Mon, 26 Dec 2005 00:34:07 +0000 (00:34 +0000)
git-svn-id: file:///home/svn/ljdump/trunk@14 7994a137-d0a5-da11-ade6-0050bffea3d9

ljdump.py

index 318b459978f923ee5a7fee33c2e0ff71fecafc12..e6429748ba6986e4a061a9b0a204eaff54582ffe 100755 (executable)
--- a/ljdump.py
+++ b/ljdump.py
@@ -92,8 +92,8 @@ new = 0
 errors = 0
 
 last = ""
 errors = 0
 
 last = ""
-f = open("%s/.last" % Username, "r")
 try:
 try:
+    f = open("%s/.last" % Username, "r")
     last = f.readline()
     if last[-1] == '\n':
         last = last[:len(last)-1]
     last = f.readline()
     if last[-1] == '\n':
         last = last[:len(last)-1]