File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -57,9 +57,9 @@ def upload(
57
57
description ,
58
58
callback_url ,
59
59
)
60
- if upload_data .get ("id" ).startswith ("m-" ):
60
+ if upload_data .get ("id" , "" ).startswith ("m-" ):
61
61
return Video (self , ** upload_data ) if upload_data else None
62
- elif upload_data .get ("id" ).startswith ("a-" ):
62
+ elif upload_data .get ("id" , "" ).startswith ("a-" ):
63
63
return Audio (self , ** upload_data ) if upload_data else None
64
- elif upload_data .get ("id" ).startswith ("i-" ):
64
+ elif upload_data .get ("id" , "" ).startswith ("i-" ):
65
65
return Image (self , ** upload_data ) if upload_data else None
Original file line number Diff line number Diff line change @@ -101,9 +101,9 @@ def upload(
101
101
description ,
102
102
callback_url ,
103
103
)
104
- if upload_data .get ("id" ).startswith ("m-" ):
104
+ if upload_data .get ("id" , "" ).startswith ("m-" ):
105
105
return Video (self ._connection , ** upload_data ) if upload_data else None
106
- elif upload_data .get ("id" ).startswith ("a-" ):
106
+ elif upload_data .get ("id" , "" ).startswith ("a-" ):
107
107
return Audio (self ._connection , ** upload_data ) if upload_data else None
108
- elif upload_data .get ("id" ).startswith ("i-" ):
108
+ elif upload_data .get ("id" , "" ).startswith ("i-" ):
109
109
return Image (self ._connection , ** upload_data ) if upload_data else None
You can’t perform that action at this time.
0 commit comments