-FLOW = flow_from_clientsecrets('/opt/planetstack/hpc_wizard/client_secrets.json',
- scope='https://www.googleapis.com/auth/bigquery')
+try:
+ FLOW = flow_from_clientsecrets('/opt/planetstack/hpc_wizard/client_secrets.json',
+ scope='https://www.googleapis.com/auth/bigquery')
+except:
+ print "exception while initializing bigquery flow"
+ traceback.print_exc()
+ FLOW = None