Page MenuHomePhorge

D708.1775274720.diff
No OneTemporary

Authored By
Unknown
Size
939 B
Referenced Files
None
Subscribers
None

D708.1775274720.diff

diff --git a/wallace/__init__.py b/wallace/__init__.py
--- a/wallace/__init__.py
+++ b/wallace/__init__.py
@@ -286,11 +286,18 @@
filepath = os.path.join(root, filename)
try:
+ # ignore calls on too young files
if os.stat(filepath).st_mtime + 150 > time.time():
- log.debug("Skipping %s" % (filepath), level=8)
+ log.debug("File not more than 150s old. Skipping %s" % (filepath), level=8)
continue
- except:
+ # ignore calls on lock files
+ if '/locks/' in filepath:
+ log.debug("File is in locks directory. Skipping %s" % (filepath), level=8)
+ continue
+
+ except Exception, errmsg:
+ log.error("Error: %s. Skipping %s" % (errmsg, filepath))
continue
if not root == pickup_path:

File Metadata

Mime Type
text/plain
Expires
Sat, Apr 4, 3:52 AM (12 h, 55 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18822742
Default Alt Text
D708.1775274720.diff (939 B)

Event Timeline