L0laapk3 / FactorioMaps

L0laapk3's FactorioMaps mod
https://mods.factorio.com/mod/L0laapk3_FactorioMaps
Other
118 stars 22 forks source link

Fix PermissionError exception in 'availableDrives' #83

Closed sonowz closed 3 years ago

sonowz commented 3 years ago

This line throws PermissionError for my Windows:

https://github.com/L0laapk3/FactorioMaps/blob/bd08875c83b0f632aca7411f358e511abdbb4313/auto.py#L452

so I just wrapped it with try-except.

In detail, this line throws exception when it tries to access an empty CD-ROM drive (D:\ in my case).

L0laapk3 commented 3 years ago

Hi, looks good, thanks for the contribution. Can you rebase this to the dev branch please?

sonowz commented 3 years ago

Done :)