We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3953574 commit 26fdbc0Copy full SHA for 26fdbc0
python3/hoi4statemapgenerator.py
@@ -177,8 +177,11 @@ def get_colors(name):
177
except:
178
pass
179
print("Saving file " + name + "...")
180
- with open(name, "rb") as handle:
181
- pickle.dump(colors, handle, protocol=pickle.HIGHEST_PROTOCOL)
+ try:
+ with open(name, "rb") as handle:
182
+ pickle.dump(colors, handle, protocol=pickle.HIGHEST_PROTOCOL)
183
+ except:
184
+ print("Could not save file " + name + "! Continuing...")
185
186
colors.insert(0, [(1/255)*BLUE_RBG[0], (1/255)*BLUE_RBG[1], (1/255)*BLUE_RBG[2]])
187
return colors
@@ -237,4 +240,4 @@ def get_colors(name):
237
240
238
241
province_map.show()
239
242
print("Saving file " + args.output + "...")
-province_map.save(args.output, "PNG")
243
+province_map.save(args.output, "PNG")
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments