We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 01913b5 commit 80fe474Copy full SHA for 80fe474
1 file changed
sql_feed_graphite/__init__.py
@@ -67,6 +67,15 @@ def main():
67
**query
68
)
69
continue
70
+
71
+def excepthook(type, value, tb):
72
+ # you can log the exception to a file here
73
+ print ('ERROR:',type,value)
74
75
+ # the following line does the default (prints it to err)
76
+ sys.__excepthook__(type, value, tb)
77
78
+sys.excepthook = excepthook
79
80
if __name__ == '__main__':
81
main()
0 commit comments