Show More
@@ -105,7 +105,7 b' class lock(object):' | |||||
105 | return locker |
|
105 | return locker | |
106 | try: |
|
106 | try: | |
107 | pid = int(pid) |
|
107 | pid = int(pid) | |
108 | except: |
|
108 | except ValueError: | |
109 | return locker |
|
109 | return locker | |
110 | if util.testpid(pid): |
|
110 | if util.testpid(pid): | |
111 | return locker |
|
111 | return locker | |
@@ -128,7 +128,8 b' class lock(object):' | |||||
128 | self.releasefn() |
|
128 | self.releasefn() | |
129 | try: |
|
129 | try: | |
130 | os.unlink(self.f) |
|
130 | os.unlink(self.f) | |
131 |
except: |
|
131 | except OSError: | |
|
132 | pass | |||
132 |
|
133 | |||
133 | def release(*locks): |
|
134 | def release(*locks): | |
134 | for lock in locks: |
|
135 | for lock in locks: |
General Comments 0
You need to be logged in to leave comments.
Login now