Skip to content

Commit

Permalink
mkpack: emit an error message when you meant to, doofus
Browse files Browse the repository at this point in the history
  • Loading branch information
jwise committed Apr 14, 2021
1 parent ae038d8 commit 0c0fe35
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Utilities/mkpack.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ def main():
sdk_path = find_pebble_sdk()
if args.sdk[0] is not None:
sdk_path = os.path.expanduser(args.sdk[0])
if not os.path.isdir(sdk_path):
if (sdk_path is None) or (not os.path.isdir(sdk_path)):
raise ValueError("could not find pebble sdk, please provide one with --sdk")
global crush_png
crush_png = convert_png_to_pebble_png_bytes
Expand All @@ -354,4 +354,4 @@ def main():
print(("wrote {}".format(dep_name)))

if __name__ == '__main__':
main()
main()

0 comments on commit 0c0fe35

Please sign in to comment.