Payday 2 has recently (in U145) changed how they store weapon categories inlib/tweak_data/weapontweakdata. All categories previously in weapon.category are now in weapon.categories[1] and weapon.sub_category is now in weapon.categories[2].
However, there are still references in PocoHud to weapon.category, e.g. local weapon_category = weap_base:weapon_tweak_data().category.