Skip to content

Commit ac50113

Browse files
authored
Merge pull request #118 from rainman-ph/type-error-fix
added TypeError in catch exception
2 parents c6fc9ad + e4ef31f commit ac50113

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jamf2snipe

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -903,7 +903,7 @@ for jamf_type in jamf_types:
903903
jamf_value = jamf_value[item]
904904
payload = {snipekey: jamf_value}
905905
latestvalue = jamf_value
906-
except KeyError:
906+
except (KeyError, TypeError):
907907
logging.debug("Skipping the payload, because the JAMF key we're mapping to doesn't exist")
908908
continue
909909

0 commit comments

Comments
 (0)