Skip to content

Commit

Permalink
Fix a crash in preset plugin when config was malformed
Browse files Browse the repository at this point in the history
  • Loading branch information
gazpachoking committed Sep 12, 2013
1 parent fb08c11 commit 9057175
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flexget/utils/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ def merge_dict_from_to(d1, d2):
merge_dict_from_to(d1[k], d2[k])
elif isinstance(v, list):
d2[k].extend(copy.deepcopy(v))
elif isinstance(v, (basestring, bool, int, float)):
elif isinstance(v, (basestring, bool, int, float, type(None))):
pass
else:
raise Exception('Unknown type: %s value: %s in dictionary' % (type(v), repr(v)))
Expand Down

0 comments on commit 9057175

Please sign in to comment.