Skip to content

Commit

Permalink
[All] Prevent `ModuleNotFoundError: spec not found for the module 'AA…
Browse files Browse the repository at this point in the history
…A3A_utils.dev'`.
  • Loading branch information
AAA3A-AAA3A committed Jul 11, 2023
1 parent 7da0518 commit 42681e7
Show file tree
Hide file tree
Showing 40 changed files with 160 additions and 40 deletions.
5 changes: 4 additions & 1 deletion acronymgame/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@
[module for module in sys.modules if module.split(".")[0] == "AAA3A_utils"], reverse=True
)
for module in modules:
importlib.reload(sys.modules[module])
try:
importlib.reload(sys.modules[module])
except ModuleNotFoundError:
pass
del AAA3A_utils
# import AAA3A_utils
# import json
Expand Down
5 changes: 4 additions & 1 deletion antinuke/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@
[module for module in sys.modules if module.split(".")[0] == "AAA3A_utils"], reverse=True
)
for module in modules:
importlib.reload(sys.modules[module])
try:
importlib.reload(sys.modules[module])
except ModuleNotFoundError:
pass
del AAA3A_utils
# import AAA3A_utils
# import json
Expand Down
5 changes: 4 additions & 1 deletion autotraceback/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@
[module for module in sys.modules if module.split(".")[0] == "AAA3A_utils"], reverse=True
)
for module in modules:
importlib.reload(sys.modules[module])
try:
importlib.reload(sys.modules[module])
except ModuleNotFoundError:
pass
del AAA3A_utils
# import AAA3A_utils
# import json
Expand Down
5 changes: 4 additions & 1 deletion calculator/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@
[module for module in sys.modules if module.split(".")[0] == "AAA3A_utils"], reverse=True
)
for module in modules:
importlib.reload(sys.modules[module])
try:
importlib.reload(sys.modules[module])
except ModuleNotFoundError:
pass
del AAA3A_utils
# import AAA3A_utils
# import json
Expand Down
5 changes: 4 additions & 1 deletion clearchannel/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@
[module for module in sys.modules if module.split(".")[0] == "AAA3A_utils"], reverse=True
)
for module in modules:
importlib.reload(sys.modules[module])
try:
importlib.reload(sys.modules[module])
except ModuleNotFoundError:
pass
del AAA3A_utils
# import AAA3A_utils
# import json
Expand Down
5 changes: 4 additions & 1 deletion cmdchannel/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@
[module for module in sys.modules if module.split(".")[0] == "AAA3A_utils"], reverse=True
)
for module in modules:
importlib.reload(sys.modules[module])
try:
importlib.reload(sys.modules[module])
except ModuleNotFoundError:
pass
del AAA3A_utils
# import AAA3A_utils
# import json
Expand Down
5 changes: 4 additions & 1 deletion codesnippets/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@
[module for module in sys.modules if module.split(".")[0] == "AAA3A_utils"], reverse=True
)
for module in modules:
importlib.reload(sys.modules[module])
try:
importlib.reload(sys.modules[module])
except ModuleNotFoundError:
pass
del AAA3A_utils
# import AAA3A_utils
# import json
Expand Down
5 changes: 4 additions & 1 deletion commandsbuttons/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@
[module for module in sys.modules if module.split(".")[0] == "AAA3A_utils"], reverse=True
)
for module in modules:
importlib.reload(sys.modules[module])
try:
importlib.reload(sys.modules[module])
except ModuleNotFoundError:
pass
del AAA3A_utils
# import AAA3A_utils
# import json
Expand Down
5 changes: 4 additions & 1 deletion consolelogs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@
[module for module in sys.modules if module.split(".")[0] == "AAA3A_utils"], reverse=True
)
for module in modules:
importlib.reload(sys.modules[module])
try:
importlib.reload(sys.modules[module])
except ModuleNotFoundError:
pass
del AAA3A_utils
# import AAA3A_utils
# import json
Expand Down
5 changes: 4 additions & 1 deletion ctxvar/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@
[module for module in sys.modules if module.split(".")[0] == "AAA3A_utils"], reverse=True
)
for module in modules:
importlib.reload(sys.modules[module])
try:
importlib.reload(sys.modules[module])
except ModuleNotFoundError:
pass
del AAA3A_utils
# import AAA3A_utils
# import json
Expand Down
5 changes: 4 additions & 1 deletion dev/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@
[module for module in sys.modules if module.split(".")[0] == "AAA3A_utils"], reverse=True
)
for module in modules:
importlib.reload(sys.modules[module])
try:
importlib.reload(sys.modules[module])
except ModuleNotFoundError:
pass
del AAA3A_utils
# import AAA3A_utils
# import json
Expand Down
5 changes: 4 additions & 1 deletion dictionary/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@
[module for module in sys.modules if module.split(".")[0] == "AAA3A_utils"], reverse=True
)
for module in modules:
importlib.reload(sys.modules[module])
try:
importlib.reload(sys.modules[module])
except ModuleNotFoundError:
pass
del AAA3A_utils
# import AAA3A_utils
# import json
Expand Down
5 changes: 4 additions & 1 deletion discordedit/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@
[module for module in sys.modules if module.split(".")[0] == "AAA3A_utils"], reverse=True
)
for module in modules:
importlib.reload(sys.modules[module])
try:
importlib.reload(sys.modules[module])
except ModuleNotFoundError:
pass
del AAA3A_utils
# import AAA3A_utils
# import json
Expand Down
5 changes: 4 additions & 1 deletion discordmodals/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@
[module for module in sys.modules if module.split(".")[0] == "AAA3A_utils"], reverse=True
)
for module in modules:
importlib.reload(sys.modules[module])
try:
importlib.reload(sys.modules[module])
except ModuleNotFoundError:
pass
del AAA3A_utils
# import AAA3A_utils
# import json
Expand Down
5 changes: 4 additions & 1 deletion discordsearch/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@
[module for module in sys.modules if module.split(".")[0] == "AAA3A_utils"], reverse=True
)
for module in modules:
importlib.reload(sys.modules[module])
try:
importlib.reload(sys.modules[module])
except ModuleNotFoundError:
pass
del AAA3A_utils
# import AAA3A_utils
# import json
Expand Down
5 changes: 4 additions & 1 deletion draw/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@
[module for module in sys.modules if module.split(".")[0] == "AAA3A_utils"], reverse=True
)
for module in modules:
importlib.reload(sys.modules[module])
try:
importlib.reload(sys.modules[module])
except ModuleNotFoundError:
pass
del AAA3A_utils
# import AAA3A_utils
# import json
Expand Down
5 changes: 4 additions & 1 deletion dropdownstexts/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@
[module for module in sys.modules if module.split(".")[0] == "AAA3A_utils"], reverse=True
)
for module in modules:
importlib.reload(sys.modules[module])
try:
importlib.reload(sys.modules[module])
except ModuleNotFoundError:
pass
del AAA3A_utils
# import AAA3A_utils
# import json
Expand Down
5 changes: 4 additions & 1 deletion editfile/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@
[module for module in sys.modules if module.split(".")[0] == "AAA3A_utils"], reverse=True
)
for module in modules:
importlib.reload(sys.modules[module])
try:
importlib.reload(sys.modules[module])
except ModuleNotFoundError:
pass
del AAA3A_utils
# import AAA3A_utils
# import json
Expand Down
5 changes: 4 additions & 1 deletion exportchannel/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@
[module for module in sys.modules if module.split(".")[0] == "AAA3A_utils"], reverse=True
)
for module in modules:
importlib.reload(sys.modules[module])
try:
importlib.reload(sys.modules[module])
except ModuleNotFoundError:
pass
del AAA3A_utils
# import AAA3A_utils
# import json
Expand Down
5 changes: 4 additions & 1 deletion getdocs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@
[module for module in sys.modules if module.split(".")[0] == "AAA3A_utils"], reverse=True
)
for module in modules:
importlib.reload(sys.modules[module])
try:
importlib.reload(sys.modules[module])
except ModuleNotFoundError:
pass
del AAA3A_utils
# import AAA3A_utils
# import json
Expand Down
5 changes: 4 additions & 1 deletion getloc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@
[module for module in sys.modules if module.split(".")[0] == "AAA3A_utils"], reverse=True
)
for module in modules:
importlib.reload(sys.modules[module])
try:
importlib.reload(sys.modules[module])
except ModuleNotFoundError:
pass
del AAA3A_utils
# import AAA3A_utils
# import json
Expand Down
5 changes: 4 additions & 1 deletion gistshandler/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@
[module for module in sys.modules if module.split(".")[0] == "AAA3A_utils"], reverse=True
)
for module in modules:
importlib.reload(sys.modules[module])
try:
importlib.reload(sys.modules[module])
except ModuleNotFoundError:
pass
del AAA3A_utils
# import AAA3A_utils
# import json
Expand Down
5 changes: 4 additions & 1 deletion ip/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@
[module for module in sys.modules if module.split(".")[0] == "AAA3A_utils"], reverse=True
)
for module in modules:
importlib.reload(sys.modules[module])
try:
importlib.reload(sys.modules[module])
except ModuleNotFoundError:
pass
del AAA3A_utils
# import AAA3A_utils
# import json
Expand Down
5 changes: 4 additions & 1 deletion lintcodes/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@
[module for module in sys.modules if module.split(".")[0] == "AAA3A_utils"], reverse=True
)
for module in modules:
importlib.reload(sys.modules[module])
try:
importlib.reload(sys.modules[module])
except ModuleNotFoundError:
pass
del AAA3A_utils
# import AAA3A_utils
# import json
Expand Down
5 changes: 4 additions & 1 deletion medicat/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@
[module for module in sys.modules if module.split(".")[0] == "AAA3A_utils"], reverse=True
)
for module in modules:
importlib.reload(sys.modules[module])
try:
importlib.reload(sys.modules[module])
except ModuleNotFoundError:
pass
del AAA3A_utils
# import AAA3A_utils
# import json
Expand Down
5 changes: 4 additions & 1 deletion memberprefix/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@
[module for module in sys.modules if module.split(".")[0] == "AAA3A_utils"], reverse=True
)
for module in modules:
importlib.reload(sys.modules[module])
try:
importlib.reload(sys.modules[module])
except ModuleNotFoundError:
pass
del AAA3A_utils
# import AAA3A_utils
# import json
Expand Down
5 changes: 4 additions & 1 deletion memorygame/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@
[module for module in sys.modules if module.split(".")[0] == "AAA3A_utils"], reverse=True
)
for module in modules:
importlib.reload(sys.modules[module])
try:
importlib.reload(sys.modules[module])
except ModuleNotFoundError:
pass
del AAA3A_utils
# import AAA3A_utils
# import json
Expand Down
5 changes: 4 additions & 1 deletion minecraft/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@
[module for module in sys.modules if module.split(".")[0] == "AAA3A_utils"], reverse=True
)
for module in modules:
importlib.reload(sys.modules[module])
try:
importlib.reload(sys.modules[module])
except ModuleNotFoundError:
pass
del AAA3A_utils
# import AAA3A_utils
# import json
Expand Down
5 changes: 4 additions & 1 deletion reacttocommand/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@
[module for module in sys.modules if module.split(".")[0] == "AAA3A_utils"], reverse=True
)
for module in modules:
importlib.reload(sys.modules[module])
try:
importlib.reload(sys.modules[module])
except ModuleNotFoundError:
pass
del AAA3A_utils
# import AAA3A_utils
# import json
Expand Down
5 changes: 4 additions & 1 deletion recipes/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@
[module for module in sys.modules if module.split(".")[0] == "AAA3A_utils"], reverse=True
)
for module in modules:
importlib.reload(sys.modules[module])
try:
importlib.reload(sys.modules[module])
except ModuleNotFoundError:
pass
del AAA3A_utils
# import AAA3A_utils
# import json
Expand Down
5 changes: 4 additions & 1 deletion reminders/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@
[module for module in sys.modules if module.split(".")[0] == "AAA3A_utils"], reverse=True
)
for module in modules:
importlib.reload(sys.modules[module])
try:
importlib.reload(sys.modules[module])
except ModuleNotFoundError:
pass
del AAA3A_utils
# import AAA3A_utils
# import json
Expand Down
5 changes: 4 additions & 1 deletion rolesbuttons/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@
[module for module in sys.modules if module.split(".")[0] == "AAA3A_utils"], reverse=True
)
for module in modules:
importlib.reload(sys.modules[module])
try:
importlib.reload(sys.modules[module])
except ModuleNotFoundError:
pass
del AAA3A_utils
# import AAA3A_utils
# import json
Expand Down
5 changes: 4 additions & 1 deletion runcode/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@
[module for module in sys.modules if module.split(".")[0] == "AAA3A_utils"], reverse=True
)
for module in modules:
importlib.reload(sys.modules[module])
try:
importlib.reload(sys.modules[module])
except ModuleNotFoundError:
pass
del AAA3A_utils
# import AAA3A_utils
# import json
Expand Down
Loading

0 comments on commit 42681e7

Please sign in to comment.