RozeFound / mmc-export

Export MMC modpack to other modpack formats
MIT License
15 stars 3 forks source link

TypeError on 2.1.9 #15

Closed Madis0 closed 2 years ago

Madis0 commented 2 years ago
PS C:\Users\Madis> mmc-export -i "C:\Users\Madis\Desktop\Fabulously Optimized 3.8.2.zip" -f Modrinth -o modpacks --exclude-providers CurseForge --modrinth-search loose
Traceback (most recent call last):
  File "C:\Users\Madis\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Users\Madis\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "C:\Users\Madis\AppData\Local\Programs\Python\Python310\Scripts\mmc-export.exe\__main__.py", line 7, in <module>
  File "C:\Users\Madis\AppData\Local\Programs\Python\Python310\lib\site-packages\mmc_export\main.py", line 75, in main
    loop.run_until_complete(run())
  File "C:\Users\Madis\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 646, in run_until_complete
    return future.result()
  File "C:\Users\Madis\AppData\Local\Programs\Python\Python310\lib\site-packages\mmc_export\main.py", line 50, in run
    intermediate = await parser.parse()
  File "C:\Users\Madis\AppData\Local\Programs\Python\Python310\lib\site-packages\mmc_export\parser.py", line 84, in parse
    await asyncio.gather(*futures)
  File "C:\Users\Madis\AppData\Local\Programs\Python\Python310\lib\site-packages\mmc_export\parser.py", line 50, in get_resource
    resource = await self.resourceAPI.get(path)
  File "C:\Users\Madis\AppData\Local\Programs\Python\Python310\lib\site-packages\mmc_export\Helpers\resourceAPI.py", line 44, in get
    cache_file = self.cache_directory / get_hash(path, "xxhash")
  File "C:\Users\Madis\AppData\Local\Programs\Python\Python310\lib\site-packages\mmc_export\Helpers\utils.py", line 17, in get_hash
    else: raise TypeError("")
TypeError
Ultrasonic1209 commented 2 years ago

I'm not able to make a PR right now, but you should look into using isinstance to check types instead.