Skip to content

Commit

Permalink
🐍 move print log to try to handle erlport bug
Browse files Browse the repository at this point in the history
  • Loading branch information
RustySnek committed Aug 3, 2024
1 parent d40ae98 commit 124306b
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions python/serpent_watcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,15 @@ def handle_event(self, action: str, path):
self.last_event_time[path] = current_time
module_name = self.get_module_name(path)
if module_name:
if self.logging:
print(
"Reloading module:",
module_name,
"Path:",
path,
f"[{action.upper()}]",
)
try:
if self.logging:
print(
"Reloading module:",
module_name,
"Path:",
path,
f"[{action.upper()}]",
)
erlang.cast(self.pid, (Atom("reload".encode("utf-8")), module_name))
except:
pass
Expand Down

0 comments on commit 124306b

Please sign in to comment.