mirror of
https://github.com/IEEE-SB-Passau/pelican-deployment-system.git
synced 2017-09-06 16:35:38 +02:00
9 lines
211 B
Python
9 lines
211 B
Python
|
|
|
||
|
|
def exception_logged(func, log):
|
||
|
|
def wrapped(*args, **kwargs):
|
||
|
|
try:
|
||
|
|
func(*args, **kwargs)
|
||
|
|
except:
|
||
|
|
log("Caught Exception!", exc_info=True)
|
||
|
|
raise # reraise
|