1
0
mirror of https://github.com/IEEE-SB-Passau/pelican-deployment-system.git synced 2017-09-06 16:35:38 +02:00
Files
pelican-deployment-system/pelican_deploy/util.py

10 lines
230 B
Python
Raw Normal View History

2016-06-13 00:58:13 +02:00
def exception_logged(func, log):
def wrapped(*args, **kwargs):
try:
func(*args, **kwargs)
except:
log("Caught Exception!", exc_info=True)
raise # reraise
2016-06-13 01:21:04 +02:00
return wrapped