Famcy/_util_/_fsubmission.py
def exception_handler(func):
	"""
	This is the decorator to 
	assign the exception response
	when there is an exception.
	"""

	def inner_function(*args, **kwargs):
		try:
			func(*args, **kwargs)
		except:
			# # Arg1 is intend to be the submission id of the submission object
			# fsubmission_obj = get_fsubmission_obj(None, args[1])
			# inner_text, extra_script = alert_response({"alert_type":"alert-warning", "alert_message":"系統異常", "alert_position":"prepend"}, fsubmission_obj.origin.id)
			# # args[0] is the sijax response object
			# args[0].html_prepend('#'+fsubmission_obj.target.id, inner_text)
			# args[0].script(extra_script)
			# args[0].script("$('#loading_holder').css('display','none');")
			pass

	return inner_function

	This is the decorator to 
	assign the exception response
	when there is an exception.
	
This is the decorator to
assign the exception response
when there is an exception.
This is the decorator to assign the exception response when there is an exception .
def exception_handler(func):
	def inner_function(*args, **kwargs):
		try:
			func(*args, **kwargs)
		except:
			pass
	return inner_function
def exception_handler ( func ) : def inner_function ( * args , ** kwargs ) : try : func ( * args , ** kwargs ) except : pass return inner_function
This is the decorator to
assign the exception response
when there is an exception.
This is the decorator to assign the exception response when there is an exception .
"""
	This is the decorator to 
	assign the exception response
	when there is an exception.
	""" # # Arg1 is intend to be the submission id of the submission object # fsubmission_obj = get_fsubmission_obj(None, args[1]) # inner_text, extra_script = alert_response({"alert_type":"alert-warning", "alert_message":"系統異常", "alert_position":"prepend"}, fsubmission_obj.origin.id) # # args[0] is the sijax response object # args[0].html_prepend('#'+fsubmission_obj.target.id, inner_text) # args[0].script(extra_script) # args[0].script("$('#loading_holder').css('display','none');")
func