Skip to content

Commit 195c2ee

Browse files
committed
Fix linting
1 parent a5d1f11 commit 195c2ee

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

tagbase_server/tagbase_server/utils/processing_utils.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,9 @@ def process_etuff_file(file, version=None, notes=None):
120120
line_counter = 0
121121
variable_lookup = {}
122122

123-
metadata_lines = process_global_attributes(lines, cur, submission_id, metadata, submission_filename)
123+
metadata_lines = process_global_attributes(
124+
lines, cur, submission_id, metadata, submission_filename
125+
)
124126
line_counter += metadata_lines
125127

126128
for counter in range(metadata_lines, lines_length):
@@ -142,16 +144,18 @@ def process_etuff_file(file, version=None, notes=None):
142144
variable_id = row[0]
143145
else:
144146
try:
145-
logger.debug("variable_name=%s\ttokens=%s", variable_name, tokens)
147+
logger.debug(
148+
"variable_name=%s\ttokens=%s", variable_name, tokens
149+
)
146150
cur.execute(
147151
"INSERT INTO observation_types("
148152
"variable_name, variable_units) VALUES (%s, %s) "
149153
"ON CONFLICT (variable_name) DO NOTHING",
150154
(variable_name, tokens[4].strip()),
151155
)
152156
except (
153-
Exception,
154-
psycopg2.DatabaseError,
157+
Exception,
158+
psycopg2.DatabaseError,
155159
) as error:
156160
logger.error(
157161
"variable_id '%s' already exists in 'observation_types'. tokens:"

0 commit comments

Comments
 (0)