except
, specify exception instead FLK-E722 39def get_column_data_type(column):
40 try:
41 data_type = six.text_type(column.type)
42 except: 43 data_type = 'NullType'
44
45 for rule in data_types:
92
93 try:
94 db_type = sql_to_db_type(column.type)
95 except: 96 db_type = 'NullType'
97
98 if column.foreign_keys:
87
88 try:
89 map_type = sql_to_map_type(column.type)
90 except: 91 map_type = 'NullType'
92
93 try:
399
400 config_value = config.get('JET', 'BLACKLIST_HOSTS', fallback='')
401 hostnames.extend(config_value.split(','))
402 except:403 pass
404
405 return list(filter(
67 if conf.get('extra'):
68 url.append('&')
69 url.append(str(conf.get('extra')))
70 except: 71 pass
72 elif conf.get('engine') == 'snowflake':
73 url.append(url_encode(str(conf.get('user'))))
Using except
without a specific exception can be error prone.