aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2021-11-03 16:44:04 -0700
committerBryan Newbold <bnewbold@robocracy.org>2021-11-03 16:52:44 -0700
commit0af742bc24f39193a04c913b8abd7258fe10708a (patch)
tree163da0cbf135e07a3493909ff7696ce391b902d3
parent43cacd6f50398b875364b4870d1cd9542c4832e9 (diff)
downloadfatcat-0af742bc24f39193a04c913b8abd7258fe10708a.tar.gz
fatcat-0af742bc24f39193a04c913b8abd7258fe10708a.zip
facat_import.py: work around corner case in run_cdl_dash_dat()
-rwxr-xr-xpython/fatcat_import.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/fatcat_import.py b/python/fatcat_import.py
index 116df8b7..445acde8 100755
--- a/python/fatcat_import.py
+++ b/python/fatcat_import.py
@@ -355,7 +355,7 @@ def run_cdl_dash_dat(args: argparse.Namespace) -> None:
(editgroup_id, release, fs) = auto_cdl_dash_dat(
api, args.dat_path, release_id=args.release_id, editgroup_id=args.editgroup_id
)
- if not fs:
+ if not (fs and release):
return
print("release_id: {}".format(release.ident))
print("editgroup_id: {}".format(editgroup_id))