Commits

Andrey Vlasovskikh committed 2b57dac

Print traceback if exception occurs

Comments (0)

Files changed (1)

 from glob import glob
 from datetime import datetime
 from contextlib import contextmanager
+import traceback
 
 try:
     from urllib.request import pathname2url, url2pathname
         global retcode
         retcode = 1
         log('Error when {0}: {1}'.format(message, e))
+        log(traceback.format_exc())
 
 
 def load_file(basedir, filename, site):