~blowry/steamarchiver

28a88805ec8b99484ad71398890891342428a177 — Benjamin Lowry 5 months ago ae44f18
get_depot_keys: handle newer depots without names
1 files changed, 6 insertions(+), 2 deletions(-)

M get_depot_keys.py
M get_depot_keys.py => get_depot_keys.py +6 -2
@@ 105,5 105,9 @@ if __name__ == "__main__":
                        keys_saved.append(depot)
                        if key != b'':
                            key_hex = hexlify(key).decode()
                            f.write("%s\t\t%s\t%s" % (depot, key_hex, info['name']) + "\n")
                            print("%s\t\t%s\t%s" % (depot, key_hex, info['name']))
                            if 'name' in info.keys():
                                f.write("%s\t\t%s\t%s" % (depot, key_hex, info['name']) + "\n")
                                print("%s\t\t%s\t%s" % (depot, key_hex, info['name']))
                            else:
                                f.write("%s\t\t%s" % (depot, key_hex) + "\n")
                                print("%s\t\t%s" % (depot, key_hex))