Project

General

Profile

Support #42197

désactiver sentry pour les commandes shell/runscript (?)

Added by Frédéric Péters 7 months ago. Updated 7 months ago.

Status:
Nouveau
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
28 Apr 2020
Due date:
% Done:

0%

Patch proposed:
No
Planning:
No

Description

runscript sauf si -v0 ? (dans l'idée que dans un job cron ça sera v0)

SyntaxError: invalid syntax (check-and-repair.py, line 192)
  File "manage.py", line 21, in <module>
    execute_from_command_line(sys.argv[:1] + argv)
  File "django/core/management/__init__.py", line 364, in execute_from_command_line
    utility.execute()
  File "django/core/management/__init__.py", line 356, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "django/core/management/__init__.py", line 206, in fetch_command
    klass = load_command_class(app_name, subcommand)
  File "django/core/management/__init__.py", line 40, in load_command_class
    module = import_module('%s.management.commands.%s' % (app_name, name))
  File "__init__.py", line 37, in import_module
    __import__(name)

History

#1 Updated by Benjamin Dauvergne 7 months ago

Sinon y a self.stdout.isatty() comme test possible, mais bon | less :/

Also available in: Atom PDF