Skip to content

Commit

Permalink
Removes the unused try statement that broke the last version
Browse files Browse the repository at this point in the history
I made a very careless last-minute change to my code before submitting
a153594, and managed to break the whole package :(
This fixes that issue - everything seems to be up and running, for real
this time
  • Loading branch information
adinklotz committed Aug 4, 2020
1 parent 7f8bf5f commit bd23d38
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions trello/card.py
Original file line number Diff line number Diff line change
Expand Up @@ -580,9 +580,8 @@ def set_custom_field(self, value, custom_field):
if value == "":
list_field_id = ""
else:
try:
list_field_id = [
x for x, y in custom_field.list_options.items() if y == value][0]
list_field_id = [
x for x, y in custom_field.list_options.items() if y == value][0]
post_args = {'idValue': list_field_id}

self.client.fetch_json(
Expand Down

0 comments on commit bd23d38

Please sign in to comment.