~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to bin/ivle-fetchsubmissions

Added printing of full traceback when an error is caught.

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
import datetime
29
29
import optparse
30
30
import zipfile
 
31
import traceback
31
32
 
32
33
import pysvn
33
34
 
237
238
        except Exception, e:
238
239
            # Catch all exceptions (to ensure if one student has a problem, it
239
240
            # is reported, and we can continue)
240
 
            print >>sys.stderr, "%s: %s: %s" % (
241
 
                submission.assessed.principal.display_name,
242
 
                type(e).__name__, e)
 
241
            print >>sys.stderr, "ERROR on submission for %s:" % (
 
242
                submission.assessed.principal.display_name)
 
243
            traceback.print_exc(e)
243
244
 
244
245
if __name__ == "__main__":
245
246
    sys.exit(main(sys.argv))