Skip to content

Commit

Permalink
Don't try to decode None filetypes
Browse files Browse the repository at this point in the history
  • Loading branch information
Roey Darwish Dror committed Oct 28, 2015
1 parent 1dd905f commit 517e092
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pushbullet_cli/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
def _decode(f):
@wraps(f)
def wrapper(*args, **kwargs):
return f(*args, **kwargs).decode("ASCII")
file_type = f(*args, **kwargs)
return None if file_type is None else file_type.decode("ASCII")

return wrapper

Expand Down

0 comments on commit 517e092

Please sign in to comment.