Skip to content

Commit

Permalink
Merge branch 'master' into fix/none_string
Browse files Browse the repository at this point in the history
  • Loading branch information
AlbertSnows authored Feb 28, 2025
2 parents d6b5cf3 + b5f744b commit 7946daa
Show file tree
Hide file tree
Showing 3 changed files with 311 additions and 325 deletions.
6 changes: 5 additions & 1 deletion fence/sync/sync_users.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,10 @@ def _read_file(filepath, encrypted=True, key=None, logger=None):
"-K",
key,
filepath,
]
],
stdout=sp.PIPE,
stderr=open(os.devnull, "w"),
universal_newlines=True,
)
try:
yield StringIO(p.communicate()[0])
Expand Down Expand Up @@ -550,6 +553,7 @@ def _parse_csv(self, file_dict, sess, dbgap_config={}, encrypted=True):
filepath, encrypted=encrypted, key=dbgap_key, logger=self.logger
) as f:
csv = DictReader(f, quotechar='"', skipinitialspace=True)

for row in csv:
username = row.get("login") or ""
if username == "":
Expand Down
Loading

0 comments on commit 7946daa

Please sign in to comment.