Skip to content

Commit

Permalink
Update content_update with TypeError exception
Browse files Browse the repository at this point in the history
  • Loading branch information
Ida committed Aug 6, 2019
1 parent 0c728cd commit cc3c5cf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion piazza_api/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,10 +260,11 @@ def update_post(self, post, content):
cid = post["id"]
except KeyError:
cid = post
except TypeError:
cid = post

params = {
"cid": cid,

# For updates, the content is put into the subject.
"subject": content,
}
Expand Down

0 comments on commit cc3c5cf

Please sign in to comment.