diff --git a/frappe/__init__.py b/frappe/__init__.py
index 9a0ef73c74..b0f11dc355 100644
--- a/frappe/__init__.py
+++ b/frappe/__init__.py
@@ -1233,4 +1233,4 @@ def get_desk_link(doctype, name):
return '{2} {1}'.format(doctype, name, _(doctype))
def bold(text):
- return '{0}'.format(text)
\ No newline at end of file
+ return '{0}'.format(text)
diff --git a/frappe/utils/file_lock.py b/frappe/utils/file_lock.py
index 461a6e2e71..eeffb0d069 100644
--- a/frappe/utils/file_lock.py
+++ b/frappe/utils/file_lock.py
@@ -1,5 +1,5 @@
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
-# MIT License. See license.txt
+# MIT License. See license.txt
from __future__ import unicode_literals
@@ -18,10 +18,10 @@ def create_lock(name):
else:
return False
-def check_lock(path):
+def check_lock(path, timeout=600):
if not os.path.exists(path):
return False
- if time() - os.path.getmtime(path) > 600:
+ if time() - os.path.getmtime(path) > timeout:
raise LockTimeoutError(path)
return True