Just print error when loader didn't finish
This commit is contained in:
+6
-2
@@ -114,6 +114,7 @@ class Loader(object):
|
|||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
l = None
|
||||||
try:
|
try:
|
||||||
l = Loader()
|
l = Loader()
|
||||||
l.daemonize()
|
l.daemonize()
|
||||||
@@ -135,7 +136,10 @@ if __name__ == '__main__':
|
|||||||
try:
|
try:
|
||||||
# if this fails we will have two tracebacks
|
# if this fails we will have two tracebacks
|
||||||
# one for failing to log, and one for the exception that got us here.
|
# one for failing to log, and one for the exception that got us here.
|
||||||
l.log.critical(traceback.format_exc())
|
if l:
|
||||||
|
l.log.critical(traceback.format_exc())
|
||||||
|
else:
|
||||||
|
print traceback.format_exc()
|
||||||
except:
|
except:
|
||||||
print traceback.format_exc()
|
print traceback.format_exc()
|
||||||
raise
|
raise
|
||||||
|
|||||||
Reference in New Issue
Block a user