Giter Club home page Giter Club logo

Comments (2)

C0D3D3V avatar C0D3D3V commented on June 25, 2024

Mh, the idea was that moodle-dl creates URL files for these mailto links. So that you always have a fast access to the professors mail adresse in your files. It also should not create errors for it in the logs, because it should detect that it is not downloadable in firstplace (at least thats how I remember it).
I will have a look at it after vacations.

from moodle-dl.

daniarla avatar daniarla commented on June 25, 2024

This are the logs, this is super low priority so enjoy your vacations!

2023-06-07 11:10:39  DEBUG  {task}  [0] Starting downloading of: [Course]/[Section]/[assignment]/mailto:[email protected]
2023-06-07 11:10:39  DEBUG  {task}  [0] Creating a shortcut
2023-06-07 11:10:39  ERROR  {task}  [0] AttributeError("'NoneType' object has no attribute 'endswith'")
2023-06-07 11:10:39  ERROR  {task}  [0] Error while trying to download file: 'NoneType' object has no attribute 'endswith'
2023-06-07 11:10:39  DEBUG  {task}  [0] file size: 229; downloaded: 0
2023-06-07 11:10:39  DEBUG  {task}  [0] Traceback:
Traceback (most recent call last):
  File "/home/user/.local/lib/python3.11/site-packages/moodle_dl/downloader/task.py", line 727, in real_run
    if self.opts.download_linked_files and not self.is_filtered_external_domain():
                                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/user/.local/lib/python3.11/site-packages/moodle_dl/downloader/task.py", line 565, in is_filtered_external_domain
    if domain == entry or domain.endswith('.' + entry):
                          ^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'endswith'


And then:

mailto:[email protected]
	'NoneType' object has no attribute 'endswith'

Could it be because there are . before the @ and it confuses the downloader?

from moodle-dl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.