Skip to content

Commit f1665cf

Browse files
authored
Merge pull request #21 from wsp-sag/staging
Makes Project Card Hack Fix More Reliable
2 parents 601730d + 80cc358 commit f1665cf

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

methods_add_cards.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,10 @@ def add_cards_to_registry(
6262

6363
if node_update or link_update:
6464
if write_to_disk:
65-
card.__dict__.pop("file")
66-
card.__dict__.pop("valid")
65+
if "file" in card.__dict__:
66+
card.__dict__.pop("file")
67+
if "valid" in card.__dict__:
68+
card.__dict__.pop("valid")
6769
card.write(filename=filename)
6870

6971
return out_df

0 commit comments

Comments
 (0)